Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • darren.obbard
    Junior Member
    • Jan 2012
    • 5

    blastdbcmd question

    Hi all,

    Apologies that this isn't specifically nextgen.

    Can anyone explain why I get two results with this query?

    blastdbcmd -db nt -entry 94400888 -outfmt '%gi'
    94400888i
    78217416i

    And is there anyway of using blastdbcmd -db nt -batch_entry that would guarantee a single result from each input line?

    ---FYI---
    BLAST database client, version 2.2.26+

    Thanks!

    Darren
  • kmcarr
    Senior Member
    • May 2008
    • 1181

    #2
    You see two entries because the description line for gi|94400888 indicates that it is equivalent to gi|78217416. The NCBI nr and nt definition lines have a format convention which allows them to annotate equivalent entries. The BLAST tools understand this convention and can report that information. To see only the information for the primary gi you need to add '-target_only' to your blastdbcmd. Also the -outfmt is '%g' not '%gi'. The extra 'i' is simply being added to the end of the gi string as shown in your output.

    Comment

    • darren.obbard
      Junior Member
      • Jan 2012
      • 5

      #3
      Great! Thank you so much - made my day much better....

      ('%gi' -oops! this was a wild guess, that /nearly/ worked, and I didn't think it through or look it up)

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      26 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      37 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 12:03 PM
      0 responses
      61 views
      0 reactions
      Last Post SEQadmin2  
      Working...