Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashkot
    Member
    • Nov 2011
    • 59

    #1

    Extracting (Slicing) a BAM file

    Hi there, i was wondering if someone could help with this. As there are several larger .bam files i wanted to slice out only data that belongs to say chromosome.

    I found the following command on 1kGenomes site but it does not work.

    samtools view -h ftp://ftp.1000genomes.ebi.ac.uk/vol1...e.20101123.bam 17:7512445-7513455

    Can someone please help me the correct command syntax, i want to download .bam or .vcf files for full chromosomes such as 1,2 or 12 etc without specifying the genomic coordinates.

    Thanks in advance.

    Ashwin
  • mhayes
    Member
    • Aug 2011
    • 11

    #2
    The syntax looks okay. How were the chromosomes labeled in the reference fasta file? Is it "chr17" or just "17"?

    Also, is samtools capable of reading a BAM file remotely? Should you download it first?

    What errors are being returned by the program when you try to execute it?

    Comment

    • ashkot
      Member
      • Nov 2011
      • 59

      #3
      I was trying to follow as show on this site.

      1000genomes.org is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, 1000genomes.org has it all. We hope you find what you are searching for!


      The program does not generate any errors as such, just the output file shows junk.

      Any ideas?

      Comment

      • hanshart
        Member
        • Nov 2011
        • 27

        #4
        hi,

        I just wanted to try it out but it seems that most of the HG... files were changed today. So I looked for another folder containing any BAM-files. Executing

        samtools view ftp://ftp.1000genomes.ebi.ac.uk/vol1...d.20100311.bam 1:470260-471000 > test.sam

        everything worked correctly (also "view -h"). So your command should be ok but the data seems to be corrupt (?)

        cheers

        Comment

        • ashkot
          Member
          • Nov 2011
          • 59

          #5
          when i was looking at the screen, at the output, it showed a lot of error verbiage. so i wasnt sure altogether what was going on. I will give your suggested command a try and update this forum as well.

          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
          25 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
          42 views
          0 reactions
          Last Post SEQadmin2  
          Working...