Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Non-uniq names in FASTA

    I have a fasta file I created from the bovine gene information and I ran a uniq -d command on the names to make sure I didn't have any name duplicated. But when I use it as a reference and align reads to it and then try to run those reads through picard. Picard tells me I have duplicate sam sequences.

    Does anyone know of a simple solution to this or have a way to identify those troubling sequences that appear to have the same name, even though the uniq command won't identify them?

  • #2
    On the sorted names?
    Try:

    grep ">" file.fasta | sort |uniq -d

    If you get nothing, try:

    perl -lane '$a{$F[0]}++;END{for (keys %a){print if $a{$_}>1;}}'

    If still nothing, something else if probably going on. Not clear what you mean by:

    "Picard tells me I have duplicate sam sequences"

    Is "sam" a typo or you are working with a SAM file?

    --
    Phillip

    Comment


    • #3
      Originally posted by ercfrtz View Post
      I have a fasta file I created from the bovine gene information and I ran a uniq -d command on the names to make sure I didn't have any name duplicated. But when I use it as a reference and align reads to it and then try to run those reads through picard. Picard tells me I have duplicate sam sequences.

      Does anyone know of a simple solution to this or have a way to identify those troubling sequences that appear to have the same name, even though the uniq command won't identify them?
      How have you applied your 'uniq' command? Keep in mind that the fasta name is everything up to the first whitespace in the definition line. So something like

      >bumblebee is great

      and

      >bumblebee is yellow

      is for most programs the same name. Uniq'ing the definition lines is not enough.

      Sven

      Comment


      • #4
        It looks like my file wasn't sorted and I thought it was, so uniq wasn't catching certain things. Using sort into uniq fixed the issue. Thanks for the replies.

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Advancing Precision Medicine for Rare Diseases in Children
          by seqadmin




          Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
          12-16-2024, 07:57 AM
        • seqadmin
          Recent Advances in Sequencing Technologies
          by seqadmin



          Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

          Long-Read Sequencing
          Long-read sequencing has seen remarkable advancements,...
          12-02-2024, 01:49 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 12-17-2024, 10:28 AM
        0 responses
        22 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 12-13-2024, 08:24 AM
        0 responses
        42 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 12-12-2024, 07:41 AM
        0 responses
        28 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 12-11-2024, 07:45 AM
        0 responses
        42 views
        0 likes
        Last Post seqadmin  
        Working...
        X