Skip to content

Commit

Permalink
Fixed EC errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kylacochrane committed Oct 24, 2024
1 parent bf01c2f commit 97a6246
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/local/append_clusters/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ process APPEND_CLUSTERS {
echo "Error: Address levels do not match between initial_clusters and --db_clusters."
exit 1
fi
# Add a "source" column to differentiate the reference profiles and additional profiles
csvtk mutate2 -t -n source -e " 'ref' " ${initial_clusters} > reference_clusters_source.tsv
csvtk mutate2 -t -n source -e " 'db' " ${additional_clusters} > additional_clusters_source.tsv
Expand Down
4 changes: 2 additions & 2 deletions modules/local/cluster_file/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ process CLUSTER_FILE {
}

// Generate the header for the expected_clusters.txt file
def header = ["id", "address"]
def header = ["id", "address"]
outputLines << header.join("\t")

// Iterate over each sample in the meta list and pull the relevant information for the text file
meta.each { sample ->
def id = sample.id
def address = sample.address
def line = [id, address]
def line = [id, address]
outputLines << line.join("\t")
}

Expand Down
1 change: 0 additions & 1 deletion tests/data/databases/additional_clusters_loci.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ id address
sampleA 1.1.1.1
sampleB 1.1.2.1
sampleC 2.1.1.1

0 comments on commit 97a6246

Please sign in to comment.