This lump may be related to an STD or may be simply an area of irritation from something else such as friction from clothing, etc. If STD's are a possibility I would recommend that you be fully evaluated for these because they can be asymptomatic, especially in men.
Regarding genital warts, they are not spread from hand to penis. It's the same virus that causes both forms of warts but different strains. The strain that causes hand warts does not cause genital warts.
Advice and opinions given are based on the information provided and must not be considered an official medical recommendation. The limitations of the internet prevent an appropriate evaluation. Always consult your doctor if there is concern.