Skip to content

Commit

Permalink
Merge branch 'master' of github.com:biocorecrg/BioNextflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacozzuto committed Apr 30, 2019
2 parents 61be89b + 2e200c8 commit f28c895
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions INSTALL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ bionext_ver="0.3"
if [ -d "lib" ]; then {
echo "BioNextflow installed"
} else {
echo "BioNextflow not installed. Installing it..."
wget https://github.com/biocorecrg/BioNextflow/archive/${bionext_ver}.tar.gz
tar -zvxf ${bionext_ver}.tar.gz
mv "BioNextflow-${bionext_ver}/lib" .
rm ${bionext_ver}.tar.gz
rm -fr BioNextflow-${bionext_ver}
echo "BioNextflow not installed. Installing it..."
wget https://github.com/biocorecrg/BioNextflow/archive/${bionext_ver}.tar.gz
tar -zvxf ${bionext_ver}.tar.gz
mv "BioNextflow-${bionext_ver}/lib" .
rm ${bionext_ver}.tar.gz
rm -fr BioNextflow-${bionext_ver}
}
fi

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ You need to install the library in your nextflow pipeline for being automaticall

### Code before

"""
if [ `echo ${reference_file} | grep ".gz"` ]; then
zcat ${reference_file} > ${index}.fa
bowtie-build --threads ${task.cpus} ${index}.fa ${index}
else
ln -s ${reference_file} ${index}.fa
bowtie-build --threads ${tasks.cpus} ${index}.fa ${index}
fi
"""
"""
if [ `echo ${reference_file} | grep ".gz"` ]; then
zcat ${reference_file} > ${index}.fa
bowtie-build --threads ${task.cpus} ${index}.fa ${index}
else
ln -s ${reference_file} ${index}.fa
bowtie-build --threads ${tasks.cpus} ${index}.fa ${index}
fi
"""

### Code after
def aligner = new NGSaligner(reference_file:genome_file, index:"genome_index", cpus:task.cpus)
aligner.doIndexing("bowtie")
def aligner = new NGSaligner(reference_file:genome_file, index:"genome_index", cpus:task.cpus)
aligner.doIndexing("bowtie")

### Installation
Edit the INSTALL.sh file to select the required version

sh INSTALL.sh
sh INSTALL.sh

### Get started

Expand Down

0 comments on commit f28c895

Please sign in to comment.