Skip to content

Commit

Permalink
site deploy
Browse files Browse the repository at this point in the history
Auto-generated via {sandpaper}
Source  : 0c69edc
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-04-25 14:15:22 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : cbe6adb
Branch  : main
Author  : Graeme Grimes <[email protected]>
Time    : 2024-04-25 14:13:53 +0000
Message : Merge pull request #145 from carpentries-incubator/pythoncode

Pythoncode
  • Loading branch information
actions-user committed Apr 25, 2024
1 parent 5118b65 commit 1241c38
Show file tree
Hide file tree
Showing 13 changed files with 2,138 additions and 1,975 deletions.
1,005 changes: 519 additions & 486 deletions 04-processes-part1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 06-workflow.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions 08-reporting.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,015 changes: 524 additions & 491 deletions aio.html

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions files/scripts/process/process_python_script.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//process_python_script.nf
nextflow.enable.dsl=2

process PROCESS_READS {

script:
"""
process_reads.py ${projectDir}/data/yeast/reads/ref1_1.fq.gz
"""
}

workflow {
PROCESS_READS()
}
17 changes: 17 additions & 0 deletions files/scripts/process/process_reads.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python
import gzip
import sys
reads = 0
bases = 0

# Read gzipped fastq file
with gzip.open(sys.argv[1], 'rb') as read:
for id in read:
seq = next(read)
reads += 1
bases += len(seq.strip())
next(read)
next(read)

print("reads", reads)
print("bases", bases)
Loading

0 comments on commit 1241c38

Please sign in to comment.