Hello,
I have a .csv file that contains columns called, geneid, log2FoldChange, pvalue, padj and symbol etc. I have gene symbols under the symbol column as shown in the attached screenshot .
I want to generate a volcano plot and for that I want to create a list called let's say picked1
that contains selected 5 gene symbols (CLK1, HMOX1, SAT1, TUFT1, RHOB).
How can I create that in python? I tried the following:
picked1 = ('CLK1', 'HMOX1', 'SAT1', 'TUFT1', 'RHOB')
In the above example, it does create a list but it's not reading from the .csv file. I want it to read it from the .csv file and whenever I call pikced1
it should pick these 5 symbols from the .csv file and tell me "log2FoldChange" values of these 5 genes.
Could anyone please guide me how should I create this list so it's linked to .csv file?
Many thanks in advance!