Giter Site home page Giter Site logo

samtools dependency about angsd-wrapper HOT 2 CLOSED

mojaveazure avatar mojaveazure commented on September 26, 2024
samtools dependency

from angsd-wrapper.

Comments (2)

mojaveazure avatar mojaveazure commented on September 26, 2024

Searching for SAMTools in brew gives me this:

hoffmanp$ brew search samtools
homebrew/science/samtools                homebrew/science/samtools-0.1 

If I want to install SAMTools using brew:

hoffmanp$ brew install samtools
==> Installing samtools from homebrew/science
==> Downloading https://github.com/samtools/samtools/archive/1.2.tar.gz
==> Downloading from https://codeload.github.com/samtools/samtools/tar.gz/1.2
######################################################################## 100.0%
==> make HTSDIR=/usr/local/opt/htslib/include HTSLIB=/usr/local/opt/htslib/lib/l
🍺  /usr/local/Cellar/samtools/1.2: 44 files, 1M, built in 18 seconds
hoffmanp$ samtools

Program: samtools (Tools for alignments in the SAM format)
Version: 1.2 (using htslib 1.2.1)

Usage:   samtools <command> [options]

Commands:
  -- indexing
         faidx       index/extract FASTA
         index       index alignment
  -- editing
         calmd       recalculate MD/NM tags and '=' bases
         fixmate     fix mate information
         reheader    replace BAM header
         rmdup       remove PCR duplicates
         targetcut   cut fosmid regions (for fosmid pool only)
  -- file operations
         bamshuf     shuffle and group alignments by name
         cat         concatenate BAMs
         merge       merge sorted alignments
         mpileup     multi-way pileup
         sort        sort alignment file
         split       splits a file by read group
         bam2fq      converts a BAM to a FASTQ
  -- stats
         bedcov      read depth per BED region
         depth       compute the depth
         flagstat    simple stats
         idxstats    BAM index stats
         phase       phase heterozygotes
         stats       generate stats (former bamcheck)
  -- viewing
         flags       explain BAM flags
         tview       text alignment viewer
         view        SAM<->BAM<->CRAM conversion

This version works, which is why I say just use brew to install SAMTools. I ran brew update right before I did this, so I have the most recent version of brew on my Mac.

I say in the tutorial to use brew install samtools, as this installs a version of SAMTools that works with ANGSD-wrapper. All Mac commands should work to install ANGSD-wrapper and it's dependencies. I have not included instructions on how to build these packages in a Linux environment, simply because I'm assuming that Linux users know how to install their own software. For those that wish to build SAMTools from source, I point them to the GitHub page, which says "By default, this will build against an HTSlib source tree in ../htslib. You can alter this to a source tree elsewhere or to a previously-installed HTSlib by configuring with --with-htslib=DIR", hence I direct the user to install HTSLib and SAMTools to satisfy this dependency. I re-download HTSLib during the setup routine to make sure ANGSD sees a copy of HTSLib; ANGSD looks for HTSLib in ../htslib, just like SAMTools from source. It does not look for HTSLib in $PATH.

Finally, these are available in most package mangers, which I say on the Installation page. At least, it's available in the Ubuntu/Debian repositories and the Fedora/Red Hat repositories.

I don't think adding a routine to install SAMTools is necessary, but if you have any ideas on how to improve the wiki, I am more than open to suggestions!

from angsd-wrapper.

rossibarra avatar rossibarra commented on September 26, 2024

I would encourage inclusion of default installation of samtools. Some
users will not be linux users but using AW on a cluster and not be super
familiar with linuxy stuff. And the whole point is to make things easy if
possible.

-Jeff


Jeffrey Ross-Ibarra

Dept. of Plant Sciences
262 Robbins Hall, Mail Stop 4
University of California
One Shields Ave
Davis, CA 95616

Tel: 530-752-1152
@jrossibarra
www.rilab.org

On Fri, Jan 22, 2016 at 1:57 PM, Paul Hoffman [email protected]
wrote:

Searching for SAMTools in brew gives me this:

hoffmanp$ brew search samtools
homebrew/science/samtools homebrew/science/samtools-0.1

If I want to install SAMTools using brew:

hoffmanp$ brew install samtools
==> Installing samtools from homebrew/science
==> Downloading https://github.com/samtools/samtools/archive/1.2.tar.gz
==> Downloading from https://codeload.github.com/samtools/samtools/tar.gz/1.2######################################################################## 100.0%
==> make HTSDIR=/usr/local/opt/htslib/include HTSLIB=/usr/local/opt/htslib/lib/l
🍺 /usr/local/Cellar/samtools/1.2: 44 files, 1M, built in 18 seconds
hoffmanp$ samtools

Program: samtools (Tools for alignments in the SAM format)
Version: 1.2 (using htslib 1.2.1)

Usage: samtools [options]

Commands:
-- indexing
faidx index/extract FASTA
index index alignment
-- editing
calmd recalculate MD/NM tags and '=' bases
fixmate fix mate information
reheader replace BAM header
rmdup remove PCR duplicates
targetcut cut fosmid regions (for fosmid pool only)
-- file operations
bamshuf shuffle and group alignments by name
cat concatenate BAMs
merge merge sorted alignments
mpileup multi-way pileup
sort sort alignment file
split splits a file by read group
bam2fq converts a BAM to a FASTQ
-- stats
bedcov read depth per BED region
depth compute the depth
flagstat simple stats
idxstats BAM index stats
phase phase heterozygotes
stats generate stats (former bamcheck)
-- viewing
flags explain BAM flags
tview text alignment viewer
view SAM<->BAM<->CRAM conversion

This version works, which is why I say just use brew to install SAMTools.
I ran brew update right before I did this, so I have the most recent
version of brew on my Mac.

I say in the tutorial to use brew install samtools, as this installs a
version of SAMTools that works with ANGSD-wrapper. All Mac commands should
work to install ANGSD-wrapper and it's dependencies. I have not included
instructions on how to build these packages in a Linux environment, simply
because I'm assuming that Linux users know how to install their own
software. For those that wish to build SAMTools from source, I point them
to the GitHub page, which says "By default, this will build against an
HTSlib source tree in ../htslib. You can alter this to a source tree
elsewhere or to a previously-installed HTSlib by configuring with
--with-htslib=DIR", hence I direct the user to install HTSLib and
SAMTools to satisfy this dependency. I re-download HTSLib during the setup
routine to make sure ANGSD sees a copy of HTSLib; ANGSD looks for HTSLib in
../htslib, just like SAMTools from source. It does not look for HTSLib in
$PATH.

Finally, these are available in most package mangers, which I say on the
Installation page. At least, it's available in the Ubuntu/Debian
repositories and the Fedora/Red Hat repositories.

I don't think adding a routine to install SAMTools is necessary, but if
you have any ideas on how to improve the wiki, I am more than open to
suggestions!


Reply to this email directly or view it on GitHub
#25 (comment)
.

from angsd-wrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.