Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebolo1993 committed Aug 7, 2023
1 parent b662bc8 commit 5ccf144
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ cosigt_smk/singularity_bind_paths.csv
cosigt_smk/config/config.yaml
cosigt_smk/config/samples.tsv
cosigt_smk/*.pdf
cosigt_smk/workflow/scripts/__pycache__
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,4 @@ RUN git clone https://github.com/davidebolo1993/cosigt.git \
&& go mod tidy \
&& go build cosigt

ENV PATH /opt/cosigt:$PATH

RUN mkdir -p pyscripts \
&& cd pyscripts \
&& wget https://raw.githubusercontent.com/davidebolo1993/cosigt/master/cosigt_smk/workflow/scripts/pgrtk.py \
&& chmod +x pgrtk.py

ENV PATH /opt/pyscripts:$PATH

ENV PATH /opt/cosigt:$PATH
2 changes: 1 addition & 1 deletion cosigt_smk/workflow/rules/pgrtk.smk
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ rule pgrtk_get_seq:
padding=config['pgrtk']['padding']
shell:
'''
pgrtk.py {input.agc} {input.region} {params.padding} {output}
python workflow/scripts/pypgrtk.py {input.agc} {input.region} {params.padding} {output}
'''
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main(agc_file,bed_file,padding,out_file):

#load acg_file
#load agc_file
ref_db=pgrtk.AGCFile(agc_file)

#load region
Expand Down Expand Up @@ -73,7 +73,9 @@ def main(agc_file,bed_file,padding,out_file):
bed_file=os.path.abspath(sys.argv[2])
padding=int(sys.argv[3])
out_file=os.path.abspath(sys.argv[4])
print(agc_file,bed_file,padding,out_file)
main(agc_file,bed_file,padding,out_file)




0 comments on commit 5ccf144

Please sign in to comment.