Hi Monks,
I'm with the following problem:
I have data in a CSV file:(contig name, species name)
contig2, ponkan
contig2, orange
contig2, clementine
contig2, maxima
contig8, maxima
contig8, orange
contig8, clementine
contig8, ponkan
contig8, medica
contig8, maxima
contig8, ponkan
contig9, maxima
contig9, orange
contig9, clementine
contig9, ponkan
contig9, medica
contig9, maxima
contig9, ponkan
contig9, ponkan
.
.
.
Excel CSV. file with more rows of dataMy output should look like:
contig8 = maxima, orange, clementine, ponkan, medica
contig9 = maxima, orange, clementine, ponkan, medica
Perl script should read the first column and select entries equal (ie: lines with contig8 entry, for example) and then evaluate the second column of those selected entries and check if it have the five elements (maxima, orange, clementine, ponkan, doctors), selected will be in the output file. The entries (lines) that do not have the five elements (maxima, orange, clementine, ponkan, medical) will not be selected (ie: contig2) and not will be in the output file.
I ask help and suggestions from you all on how to proceed in the analysis of these data. Please excuse any mistakes as English is my second languageThank you very much!
In reply to Extracting data from CSV file + Extracting selected few lines through perl by NicholasNVS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |