Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • huma Asif
    Member
    • Oct 2010
    • 53

    #1

    consensus fasta and multifasta file of human genomes

    Dear All,
    i desperately need help in converting a thought to work.

    i have sequence six human samples and have created six alignment file (BAM) using UCSC reference.
    i need to do multiple alignment of all these samples how can i do that

    how i can convert every bam to consensus fasta
    how i can merge six consensus fasta into multifasta
    any software or reference will be appreciated
    Last edited by huma Asif; 09-08-2014, 05:22 PM.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    From Samtools manual page:

    Generate the consensus sequence for one diploid individual:

    samtools mpileup -uf ref.fa aln.bam | bcftools view -cg - | vcfutils.pl vcf2fq > cns.fq
    Use seqtk to convert from fastq to fasta.

    Concatenate (end to end, you are not "merging" the files this way) the fasta files with "cat" to generate multifasta.

    If you truly want to do whole genome alignments: http://genomewiki.ucsc.edu/index.php...lignment_howto

    Comment

    • huma Asif
      Member
      • Oct 2010
      • 53

      #3
      thank you so much will try now

      Comment

      • huma Asif
        Member
        • Oct 2010
        • 53

        #4
        well i am done with first step but look at my fastq file with many NNNNNNNNNN
        is this because my data is targeted exome sequencing
        how can i get rid of it
        if i use this fastq in seqtk it gives me empty output

        Comment

        • vivek_
          PhD Student
          • Jul 2012
          • 164

          #5
          If your data is exome sequencing use the -L option in samtools and specify your capture regions file in the mpileup step.

          Comment

          • huma Asif
            Member
            • Oct 2010
            • 53

            #6
            give the same result with -L

            see my code
            samtools mpileup -uf human_hg19.fa reads.bam -L targetSeq_exome_target_regions_hg19.bed |bcftools view -cg - |/usr/local/genome/samtools-0.1.18/bcftools/vcfutils.pl vcf2fq > cns.fastq



            fq with many n and empty fasta with
            seqtk seq –a cns.fastq > cns.fa

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #7
              That should have been a lower case "l".
              -l FILE list of positions (chr pos) or regions (BED) [null]
              -L means something else for samtools mpileup.

              Comment

              • huma Asif
                Member
                • Oct 2010
                • 53

                #8
                thank you so much i am going to try this now

                Comment

                • huma Asif
                  Member
                  • Oct 2010
                  • 53

                  #9
                  tried with small l still n in final output please suggest where i can get wrong

                  see my code
                  samtools mpileup -uf human_hg19.fa reads.bam -l targetSeq_exome_target_regions_hg19.bed |bcftools view -cg - |/usr/local/genome/samtools-0.1.18/bcftools/vcfutils.pl vcf2fq > cns.fastq

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                    by SEQadmin2



                    CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                    Despite this, “CRISPR helped turn genome editing from a specialized technique into
                    ...
                    07-31-2026, 11:01 AM
                  • SEQadmin2
                    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                    by SEQadmin2


                    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                    The systematic characterization of the human proteome has
                    ...
                    07-20-2026, 11:48 AM
                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    07-09-2026, 11:10 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 07-31-2026, 02:55 AM
                  0 responses
                  14 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-24-2026, 12:17 PM
                  0 responses
                  15 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-23-2026, 11:41 AM
                  0 responses
                  13 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-20-2026, 11:10 AM
                  0 responses
                  24 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...