Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JQL
    Member
    • Apr 2011
    • 83

    #1

    ftp NCBI nucleotide database

    Hi,

    I tried to retrieve 400+ bacterial 16S rDNA sequences. I found them in the website.

    How to find the same information in the ftp site? I can't seem to find the so-called nucleotide (or nuccore) database there.

    I was hoping the download the 400+ files in batch and process them.

    thanks,
    John
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Which 400 sequences are you referring to (perhaps linkout to SILVA SSU db)? The link you included is only for a single 16S sequence.

    Comment

    • JQL
      Member
      • Apr 2011
      • 83

      #3
      the genbank accession numbers: JN713151-JN713566

      It is not silva database.

      Originally posted by GenoMax View Post
      Which 400 sequences are you referring to (perhaps linkout to SILVA SSU db)? The link you included is only for a single 16S sequence.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Do you have access to nt blast database and blast+ programs? You can easily write a loop to extract the sequences using the following command (let me know if you need more details).
        Code:
        $ blastdbcmd -entry JN713152 -db /path_to/nt -outfmt '%f'
        Code:
        for i in {713151..713566}; do blastdbcmd -entry JN$i -db /path_to/nt -outfmt '%f' >> filename.fa; done
        You can also use e-utilities (http://www.ncbi.nlm.nih.gov/books/NBK25500/) something along the lines of the example here: http://www.ncbi.nlm.nih.gov/books/NB...trieving_large
        Last edited by GenoMax; 07-22-2015, 07:57 AM.

        Comment

        • JQL
          Member
          • Apr 2011
          • 83

          #5
          Hi GenoMax,

          thank you very much for sharing that. I am going to ask our admin to install the database and BLAST+ and give it a try.

          Will read the e-utilities too. I will get back to you.

          Best,
          John

          Comment

          • JQL
            Member
            • Apr 2011
            • 83

            #6
            Hi GenoMax,

            Thanks for the tip. I got the db and it works -- got the fasta sequences! Now I have another question on how to retrieve the information under 'organism' tag. For example,
            in this JN713151, I would also like to get the bacterial lineage (in red) for each query id. I tried many specifiers in the -help document, none has worked so far. Any thoughts?

            John

            LOCUS JN713151 1526 bp DNA linear ENV 09-MAY-2012
            DEFINITION Filifactor alocis canine oral taxon 001 clone OB017 16S ribosomal
            RNA gene, partial sequence.
            ACCESSION JN713151
            VERSION JN713151.1 GI:373279114
            KEYWORDS ENV.
            SOURCE Filifactor alocis
            ORGANISM Filifactor alocis
            Bacteria; Firmicutes; Clostridia; Clostridiales;
            Peptostreptococcaceae; Filifactor.

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #7
              You won't find that information in the blast database. Here is one way (I am sure there are others):

              Save the following code in a file (e.g. retr.sh).

              Code:
              j=713151;
              while [ $j -le 713567 ]
              do
                 num=`printf "JN%06d" $j`;
                 curl "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&id=${num}&rettype=genbank"
                 j=$((j+1))
              done
              Add execute permissions to that file

              Code:
              $ chmod u+x retr.sh
              Run the file to download genbank records.

              Code:
              $ ./retr.sh > genbank_records
              Extract the ID information you need into a file (id_you_need).
              Code:
              $ grep -e JN -e OrgName_lineage genbank_records | sed 's/<Textseq-id_accession>//' | sed 's/<\/Textseq-id_accession>//' | sed 's/<OrgName_lineage>//' | sed 's/<\/OrgName_lineage>//' > id_you_need
              Last edited by GenoMax; 07-28-2015, 04:57 PM.

              Comment

              • JQL
                Member
                • Apr 2011
                • 83

                #8
                Hi GenoMax,

                thank you very much for your help and code. It works very nicely!

                Just curious -- when the web download was extracted for locus id and lineage using grep, I found the locus id went beyond 713567, to all the way 713709 (in red below). Interestingly, those beyond 713566 were all human HIV virus lineage, not bacterial. I thought we only download
                while [ $j -le 713567 ]? But anyway, it is easily cleaned up, not an issue, just wonder.

                John

                ***
                JN713566
                Lachnospiraceae bacterium canine oral taxon 399 clone 1K033 16S ribosomal RNA gene, partial sequence</Seqdesc_title>
                Bacteria; Firmicutes; Clostridia; Clostridiales; Lachnospiraceae
                Human immunodeficiency virus 1 pol protein (pol) gene, partial cds.</Seqdesc_title>
                Viruses; Retro-transcribing viruses; Retroviridae; Orthoretrovirinae; Lentivirus; Primate lentivirus group
                JN713567
                HIV-1 isolate HIV_PRRT_PJ01967_1 from Dominican Republic pol protein (pol) gene, partial cds.</Seqdesc_title>
                pol protein [Human immunodeficiency virus 1]</Seqdesc_title>
                Viruses; Retro-transcribing viruses; Retroviridae; Orthoretrovirinae; Lentivirus; Primate lentivirus group
                JN713568
                HIV-1 isolate HIV_PRRT_PJ01967_2 from Dominican Republic pol protein (pol) gene, partial cds.</Seqdesc_title>
                pol protein [Human immunodeficiency virus 1]</Seqdesc_title>
                Viruses; Retro-transcribing viruses; Retroviridae; Orthoretrovirinae; Lentivirus; Primate lentivirus group
                JN713569
                HIV-1 isolate HIV_PRRT_PJ01967_3 from Dominican Republic pol protein (pol) gene, partial cds.</Seqdesc_title>
                pol protein [Human immunodeficiency virus 1]</Seqdesc_title>
                Viruses; Retro-transcribing viruses; Retroviridae; Orthoretrovirinae; Lentivirus; Primate lentivirus group
                JN713570

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                  by SEQadmin2



                  CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                  Despite this, “CRISPR helped turn genome editing from a specialized technique into
                  ...
                  07-31-2026, 11:01 AM
                • SEQadmin2
                  Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                  by SEQadmin2


                  Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                  The systematic characterization of the human proteome has
                  ...
                  07-20-2026, 11:48 AM
                • SEQadmin2
                  Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                  by SEQadmin2



                  Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                  ...
                  07-09-2026, 11:10 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 08-03-2026, 10:13 AM
                0 responses
                15 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-31-2026, 02:55 AM
                0 responses
                32 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-24-2026, 12:17 PM
                0 responses
                23 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-23-2026, 11:41 AM
                0 responses
                21 views
                0 reactions
                Last Post SEQadmin2  
                Working...