Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Samtools on Mac: how to use??

    Hello everyone!!

    I'm very new to bioinformatics, trying to index a .bam file on my mac using samtools, so my question might be very silly. I installed samtools yesterday, tried to convert a .sam to .bam and it worked. However, today I got a .bam file which I tried to index it using the

    index test1.bam

    but I keep getting this:

    -bash: index: command not found

    What am I doing wrong?!

    Thank u!

  • #2
    did you put "samtools" before "index"?

    Your command should be:

    Code:
    $ samtools index test1.bam

    Comment


    • #3
      I did, and I'm getting this:

      -bash: samtools: command not found

      Comment


      • #4
        Are you sure you have samtools installed correctly?

        Comment


        • #5
          How did you get samtools to convert a sam to a bam?

          Comment


          • #6
            By typing:

            $samtools view -bS test1.sam > test1.bam

            :/

            Comment


            • #7
              Got it! It had to do with the path or something, I typed ./samtools instead of samtools and it worked!!

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Best Practices for Single-Cell Sequencing Analysis
                by seqadmin



                While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
                06-06-2024, 07:15 AM
              • seqadmin
                Latest Developments in Precision Medicine
                by seqadmin



                Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

                Somatic Genomics
                “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
                05-24-2024, 01:16 PM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 06-07-2024, 06:58 AM
              0 responses
              13 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 06-06-2024, 08:18 AM
              0 responses
              21 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 06-06-2024, 08:04 AM
              0 responses
              20 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 06-03-2024, 06:55 AM
              0 responses
              14 views
              0 likes
              Last Post seqadmin  
              Working...
              X