Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IMP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMP-dev
IMP
Commits
9b452aff
Commit
9b452aff
authored
9 years ago
by
Shaman Narayanasamy
Browse files
Options
Downloads
Patches
Plain Diff
Add latest megahit to Dockerfile
parent
2affa821
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/Dockerfile
+10
-2
10 additions, 2 deletions
docker/Dockerfile
rules/Assembly/MGMT.rules
+9
-5
9 additions, 5 deletions
rules/Assembly/MGMT.rules
with
19 additions
and
7 deletions
docker/Dockerfile
+
10
−
2
View file @
9b452aff
...
@@ -158,14 +158,22 @@ RUN cd /home/imp/lib \
...
@@ -158,14 +158,22 @@ RUN cd /home/imp/lib \
&&
bash buildPlatypus.sh
&&
bash buildPlatypus.sh
## Megahit
## Megahit
#RUN cd /home/imp/lib \
# && git clone https://git-r3lab.uni.lu/R3/megahit.git \
# && cd megahit \
# && git checkout v0.2.1 \
# && make \
# && mv megahit* /usr/bin/. \
# && mv sdbg_builder_cpu /usr/bin/.
RUN
cd
/home/imp/lib
\
RUN
cd
/home/imp/lib
\
&&
git clone https://git
-r3lab.uni.lu/R3
/megahit.git
\
&&
git clone https://git
hub.com/voutcn
/megahit.git
\
&&
cd
megahit
\
&&
cd
megahit
\
&&
git checkout v0.2.1
\
&&
make
\
&&
make
\
&&
mv
megahit
*
/usr/bin/.
\
&&
mv
megahit
*
/usr/bin/.
\
&&
mv
sdbg_builder_cpu /usr/bin/.
&&
mv
sdbg_builder_cpu /usr/bin/.
## Vizbin JAR
## Vizbin JAR
RUN
cd
/home/imp/lib
\
RUN
cd
/home/imp/lib
\
&&
wget
--no-check-certificate
https://webdav-r3lab.uni.lu/public/R3lab/IMP/VizBin-dist.jar
-O
VizBin-dist.jar
-nv
&&
wget
--no-check-certificate
https://webdav-r3lab.uni.lu/public/R3lab/IMP/VizBin-dist.jar
-O
VizBin-dist.jar
-nv
...
...
This diff is collapsed.
Click to expand it.
rules/Assembly/MGMT.rules
+
9
−
5
View file @
9b452aff
...
@@ -137,6 +137,8 @@ rule ASSEMBLY_MGMT_ASSEMBLY_1:
...
@@ -137,6 +137,8 @@ rule ASSEMBLY_MGMT_ASSEMBLY_1:
input:
input:
preprocessed_mg('R1'),
preprocessed_mg('R1'),
preprocessed_mg('R2'),
preprocessed_mg('R2'),
preprocessed_mt('R2'),
preprocessed_mt('R2'),
expand('{dir}/{name}', name=[
expand('{dir}/{name}', name=[
'MGMT.MT_assembly-MG_SE.fa'], dir=A_OUT)
'MGMT.MT_assembly-MG_SE.fa'], dir=A_OUT)
output:
output:
...
@@ -144,9 +146,11 @@ rule ASSEMBLY_MGMT_ASSEMBLY_1:
...
@@ -144,9 +146,11 @@ rule ASSEMBLY_MGMT_ASSEMBLY_1:
shell:
shell:
"""
"""
TMPD=$(mktemp -d -t --tmpdir={TMPDIR} "XXXXXX")
TMPD=$(mktemp -d -t --tmpdir={TMPDIR} "XXXXXX")
fq2fa --merge {input[0]} {input[1]} $TMPD/merged.fa
fq2fa --merge {input[0]} {input[1]} $TMPD/merged_MG.fa
fq2fa --merge {input[2]} {input[3]} $TMPD/merged_MT.fa
cat $TMPD/merged_MG.fa $TMPD/merged_MT.fa > $TMPD/merged.fa
idba_ud -r $TMPD/merged.fa \
idba_ud -r $TMPD/merged.fa \
-l {input[
2
]} -o $TMPD \
-l {input[
4
]} -o $TMPD \
--mink {config[idba_ud][mink]} --maxk {config[idba_ud][maxk]} \
--mink {config[idba_ud][mink]} --maxk {config[idba_ud][maxk]} \
--step {config[idba_ud][step]} --num_threads {THREADS} \
--step {config[idba_ud][step]} --num_threads {THREADS} \
--similar {config[idba_ud][perid]} --pre_correction
--similar {config[idba_ud][perid]} --pre_correction
...
@@ -322,6 +326,9 @@ rule ASSEMBLY_MGMT_FAST_1:
...
@@ -322,6 +326,9 @@ rule ASSEMBLY_MGMT_FAST_1:
preprocessed_mg('R1'),
preprocessed_mg('R1'),
preprocessed_mg('R2'),
preprocessed_mg('R2'),
preprocessed_mg('SE'),
preprocessed_mg('SE'),
preprocessed_mt('R1'),
preprocessed_mt('R2'),
preprocessed_mt('SE'),
'{dir}/MT.assembly_1/final.contigs.fa'.format(dir=A_OUT)
'{dir}/MT.assembly_1/final.contigs.fa'.format(dir=A_OUT)
output:
output:
'{dir}/MGMT.assembly_1/final.contigs.fa'.format(dir=A_OUT)
'{dir}/MGMT.assembly_1/final.contigs.fa'.format(dir=A_OUT)
...
@@ -332,9 +339,6 @@ rule ASSEMBLY_MGMT_FAST_1:
...
@@ -332,9 +339,6 @@ rule ASSEMBLY_MGMT_FAST_1:
if [ -d "{params.outdir}" ]; then
if [ -d "{params.outdir}" ]; then
rm -rf {params.outdir}
rm -rf {params.outdir}
fi
fi
MAX_READ_LEN=$(cat {input} | sed -n '1~4s/^@/>/p;2~4p' |\
awk '$0 ~ \">\" {{c=0\"\t\"; }} $0 !~ \">\" {{c+=length($0); max=(max>c)?max:c;}} END {{print max}}')
echo "Max read length: $MAX_READ_LEN"
MEMBYTES=$(({MEMTOTAL}*1000*1000*1000))
MEMBYTES=$(({MEMTOTAL}*1000*1000*1000))
echo "Available memory in bytes: $MEMBYTES"
echo "Available memory in bytes: $MEMBYTES"
megahit -o {params.outdir} --cpu-only -m $MEMBYTES --mem-flag 1\
megahit -o {params.outdir} --cpu-only -m $MEMBYTES --mem-flag 1\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment