Pellagra is a vitamin deficiency disease caused by dietary lack of niacin (vitamin B3) and protein, especially proteins containing the essential amino acid tryptophan. Because tryptophan can be converted into niacin, foods with tryptophan but without niacin, such as milk, prevent pellagra. However, if dietary tryptophan is diverted into protein production, niacin deficiency may still result.
Tryptophan is an essential amino acid found in meat, poultry, fish, and eggs. So, if your diet contains these foods, your need for niacin from other sources will be reduced.
The relationship between lysine and pellagra is unclear.