Download intergenic spacers between specific genes for all findings in genbank
0
0
Entering edit mode
2.6 years ago
poecile.pal ▴ 50

Good afternoon,

I want to download fasta from genbank for intergenic spacers between certain genes for a taxon (for example, atpB-rbcL from the chloroplast genome). If I were downloading fasta for a single gene (GENE), I would do this:

library(seqinr)
choosebank("genbank", timeout = 30)
queries <- query("gene_and_species", "sp=GENE AND K=species")

dna.matrix <- list()
names.matrix <- list()
for (x in 1:length(getSequence(queries$req))){
    dna.matrix[[x]] <- getSequence(queries$req[[x]])
    names.matrix[[x]] <- getName(queries$req[[x]])
}

write.fasta(dna.matrix, as.vector(names.matrix), file.out = "species_and_GENE.fasta")

closebank()

How can I download fasta for intergenic spacers between certain genes?

Best regards, Poecile

seqinr R genbank search phylogeny • 476 views
ADD COMMENT

Login before adding your answer.

Traffic: 1503 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6