Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • vilperte
    Junior Member
    • Aug 2014
    • 5

    Getting FASTA collapsed reads

    Hello!

    I need to convert an uncollapsed FASTA file in a collapsed one.

    I managed to do that using a script from the miR-PREFeR tool for miRNA prediction. However, I need them to look like this: >t0000001 15, >t0000002 45, and so on, but I only managed to get something like >t1 15, >t2 45, and so on.

    Does anyone know how to do that (any script or tool)?

    Thanks!

    Vinicius
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    A modification using Phillip's answer from (http://seqanswers.com/forums/showpos...19&postcount=3) should do the trick.

    Try this.

    Code:
    $ perl -i.bak -pe 'BEGIN{$N="0000001"}next unless /^>/;s/(>\S+)/>t$N/;$N++' your_file
    Last edited by GenoMax; 04-15-2015, 05:39 AM.

    Comment

    Latest Articles

    Collapse

    ad_right_rmr

    Collapse

    News

    Collapse

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