Skip to content

Commit

Permalink
Clairfy ref file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Aug 22, 2023
1 parent cbd1fc4 commit f46ef6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ Use `-with-docker sequeduct_local` to use a locally built Docker image (instead

### Details

For simplicity, the names in the sample sheet are used for finding the reference Genbank files, therefore sample names must match filenames with a ".gb" extension.

Note that canu v2.2 requires minimum 100 reads, otherwise it returns an error. A [fix has been posted](https://github.com/marbl/canu/issues/2035), but it's not released yet.

For convenience, a script is included to collect plot files from the result directories (`bin/collect_plots.py`).
Expand Down
1 change: 1 addition & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ workflow review {
def entry = "${barcode}_${sample}" // unique key for each sample sheet entry
def result = row["Result"]
def genbank_path = file("${params.reference_dir}/${sample}.gb")
// Note: sample name matches filename with ".gb" extension
def consensus_path = file("${params.consensus_dir}/${entry}_consensus.fa")
return [entry, barcode, sample, result, genbank_path, consensus_path]
}
Expand Down

0 comments on commit f46ef6f

Please sign in to comment.