Comments (2)
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.
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.1If 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$ samtoolsProgram: 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 conversionThis 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)
- bash_profile
- line numbers in common_config HOT 1
- pipefail fails in zsh HOT 8
- ncores
- .txt vs .indF
- shiny file names
- config sourcing order
- args HOT 1
- got this error running fst... HOT 1
- Thetas windowed analysis does not specify an output file
- saf file not interchangeable between wrappers
- Fst is not up-to-date with the version of ANGSD we're using HOT 3
- Calculate SFS without reference genome HOT 1
- 2DSFS Fst output file mystery HOT 2
- install using 'angsd-wrapper shiny graphing' HOT 5
- two pieces: changing delimiter for fread, and an x-lim error HOT 2
- xlim error when selecting " Toggle gff annotations" HOT 2
- Modify Thetas Shiny Graphing file loading behavior
- export option feature request for Shiny app
- Help with FST in Angsd-wrapper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angsd-wrapper.