"describing the entire issue".
I have a database (silva 16S formatted by DADA2 - fasta format) that contains ~300k entries for bacteria (16S rRNA gene). e.g.,
AB001441.1.1538 Pseudomonas syringae pv. broussonetiae
AACTGAAGAGTTTGATCATGGCTCAGATTGAACGCTGGCGGCAGG...
KR054096.1.1224 Marinococcus halophilus
GAAGGTAAAGGCTTCCCCAAGGGCGACGATGGGTAGCCGACTTGA...
AB681405.1.1478 Paenibacillus barengoltzii
GACGAACGCTGGCGGCGTGCCTAATACATGCAAGTCGAGCGGAGT...
...
I would like to retrieve sequences for some genus, e.g., Pseudomonas. After running the seqkit command (mentioned by you above) I ended up with ~9 of Pseudomonas entries in a fasta file (example below).
AB001441.1.1538 Pseudomonas syringae pv. broussonetiae
AACTGAAGAGTTTGATCATGGCTCAGATTGAACGCTGGCGGCAGGCCTAACA...
AB001442.1.1538 Pseudomonas amygdali pv. eriobotryae
AACTGAAGAGTTTGATCATGGCTCAGATTGAACGCTGGCGGCAGGCCTAACA...
...
This pool of 9k sequences of Pseudomonas has several species of Pseudomonas (e.g., P. putida, P. syringe Et Cetera). Since some species of Pseudomonas have multiple sequences in the database (e.g., P. putida has 1.8k entries) I would like to know how many different species of Pseudomonas are there (in the 9k Pseudomonas entries), by names (i.e., in the filtered Psedumonas fasta file). At the end of the day, I would like to say that in this database I have 9k entries of Pseudomonas which represents 'X' number of Pseudomonas species.
What I'm thinking... Retrieve the full ID (AB001442.1.1538 Pseudomonas amygdali pv. eriobotryaeall) or if possible the portion of the ID (headers) that contains the species names (e.g. Psudomonas amygdali pv. eriobotryaeall) and with this, I can list the species names and count them. Does this explanation help to understand what I'm trying to do?
Let me know if you need more info.
Thank you for your time.
Fabricio