Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mucku
    Member
    • Jan 2009
    • 14

    #1

    Splitting fasta AND quality on masked sequence

    Hello,
    does anybody have a script or any program that allows me to split fasta sequences and the according quality file on masked bases such as "N"? Everything I find works perfectly on fasta files but the quality files are never touched. I think even FastQ format would be ok because conversion is easy these days using Galaxy.

    Any help would be appreciated.

    Cheers,

    Markus

    Example:

    >fasta
    GACTAGCGATCGACGATCGNNNNNNGACGAGCGACGAGCGA
    >qual
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 10 10 10 10 10 10 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20

    >fasta_new1
    GACTAGCGATCGACGATCG
    >fasta_new2
    GACGAGCGACGAGCGA
    >qual_new1
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    >qual_new2
    20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  • drio
    Senior Member
    • Oct 2008
    • 323

    #2
    I don't think you'll find any tool. Sounds like is time to put your scripting skills to work ?
    -drd

    Comment

    • colindaven
      Senior Member
      • Oct 2008
      • 417

      #3
      You can convert to fastQ using a perl script helpfully provided in these forums - I've done this in the past, you'll have to search for it. Then as you say manipulation is easier.

      Comment

      • mucku
        Member
        • Jan 2009
        • 14

        #4
        My scripting skills are the problem... I know some basic shell stuff like grep, sed, awk etc. I come more from the wetlab. Using pre-existing tools and some mild reformatting is ok for me. But I am not sure how to approach this...
        I am still trying to learn some biopython in my spare time...

        Comment

        Latest Articles

        Collapse

        • kinpict.com
          Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by kinpict.com
          The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
          Today, 06:37 PM
        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2





          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
          10-30-2026, 06:46 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 11-12-2026, 07:59 AM
        0 responses
        27 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-05-2026, 09:25 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-03-2026, 11:54 AM
        2 responses
        56 views
        0 reactions
        Last Post kinpict.com  
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        175 views
        0 reactions
        Last Post SEQadmin2  
        Working...