Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moriah
    Member
    • Dec 2010
    • 23

    #1

    Editing fasta , reference base in snp calling samtools

    Couple questions, I have a fasta file of hg18 which is about 3Gb large and I'm afraid that samtools pileup can't read it correctly because there are lower and upper case letters, is there a tool that can open such a large file so I can edit it or it there something that can convert all lower to upper case?

    Second question is about samtools pileup , after generating a raw.pileup file and filtering snps with R bioconductor package (Rsamtools) using the following commands :
    system("samtools pileup -f genome.fasta output.sorted.bam > raw.pileup")
    snps <- readPileup("raw.pileup", variant="SNP")
    write.table(as.data.frame(snps), "snps.xls")

    I get a xls file in which the column of "referenceBase" is all filled with "*" instead of A/C/T/G....

    someone knows what might be the problem?

    Thanks ahead!
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    maybe sed can replace all the lowercase letters with uppercase?

    I haven't used the R package, but in general, if you are getting not getting the right reference letter in the pileup, it's because pileup didn't properly connect the reference fasta you gave it in the command line with what was aligned to. Mismatching (or possibly weird names with spaces and odd characters) names might do that, or if the samtools indexing step failed (having one long string of a genome is one reason that step fails), that'll cause pileup to behave like that.

    Comment

    • moriah
      Member
      • Dec 2010
      • 23

      #3
      Thanks for your answer!

      I get the right letter in the pileup file but as I use the R package in order to determine the snps I get the "*" instead of the reference nucleotides...

      What other tool can exclude the snps from the pileup file ?

      Thanks!

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 10-22-2026, 11:13 AM
      0 responses
      26 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      36 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      43 views
      0 reactions
      Last Post SEQadmin2  
      Working...