Skip to content

Commit

Permalink
Add --gencode option to salmon indexer
Browse files Browse the repository at this point in the history
Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
Add --gencode option to salmon indexer

Addresses #15
he commit message for your changes. Lines starting
  • Loading branch information
rob-p committed Aug 18, 2016
1 parent c09fe59 commit d44df88
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/build_test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#! /bin/bash
docker build -t combinelab/salmon:0.7.0-pre .
docker build -t combinelab/salmon:0.7.1-pre .
4 changes: 2 additions & 2 deletions scripts/fetchRapMap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ if [ -d ${INSTALL_DIR}/src/rapmap ] ; then
fi

mkdir -p ${EXTERNAL_DIR}
curl -k -L https://github.com/COMBINE-lab/RapMap/archive/salmon-v0.7.0.zip -o ${EXTERNAL_DIR}/rapmap.zip
curl -k -L https://github.com/COMBINE-lab/RapMap/archive/develop-salmon.zip -o ${EXTERNAL_DIR}/rapmap.zip
rm -fr ${EXTERNAL_DIR}/RapMap
unzip ${EXTERNAL_DIR}/rapmap.zip -d ${EXTERNAL_DIR}
mv ${EXTERNAL_DIR}/RapMap-salmon-v0.7.0 ${EXTERNAL_DIR}/RapMap
mv ${EXTERNAL_DIR}/RapMap-develop-salmon ${EXTERNAL_DIR}/RapMap

mkdir -p ${INSTALL_DIR}/include/rapmap
mkdir -p ${INSTALL_DIR}/src/rapmap
Expand Down
10 changes: 10 additions & 0 deletions src/BuildSalmonIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int salmonIndex(int argc, char* argv[]) {
uint32_t numThreads;
bool useQuasi{false};
bool perfectHash{false};
bool gencodeRef{false};

po::options_description generic("Command Line Options");
generic.add_options()
Expand All @@ -86,6 +87,10 @@ int salmonIndex(int argc, char* argv[]) {
("kmerLen,k", po::value<uint32_t>(&auxKmerLen)->default_value(31)->required(),
"The size of k-mers that should be used for the quasi index.")
("index,i", po::value<string>()->required(), "Salmon index.")
("gencode", po::bool_switch(&gencodeRef)->default_value(false),
"This flag will expect the input transcript fasta to be in GENCODE format, and will split "
"the transcript name at the first \'|\' character. These reduced names will be used in the "
"output and when looking for these transcripts in a gene to transcript GTF.")
("threads,p", po::value<uint32_t>(&numThreads)->default_value(2)->required(),
"Number of threads to use (only used for computing bias features)")
("perfectHash", po::bool_switch(&perfectHash)->default_value(false),
Expand Down Expand Up @@ -192,6 +197,11 @@ Creates a salmon index.
if (perfectHash) {
argVec->push_back("--perfectHash");
}
if (gencodeRef) {
argVec->push_back("-s");
argVec->push_back("\"|\"");
}

sidx.reset(new SalmonIndex(jointLog, SalmonIndexType::QUASI));
} else {
// Build the FMD-based index
Expand Down

0 comments on commit d44df88

Please sign in to comment.