-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from ctg-lund/fix-flex-mqc-yaml
Fix flex mqc yaml
- Loading branch information
Showing
7 changed files
with
58 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import sys | ||
|
||
# Check if input file name was provided | ||
if len(sys.argv) < 3: | ||
print('Usage: python countmetric2mqc.py file.csv sample_name output_mqc.yaml') | ||
sys.exit(1) | ||
|
||
# Get input file name from command-line argument | ||
input_file = sys.argv[1] | ||
sample_name = sys.argv[2] | ||
mqc_yaml = sys.argv[3] | ||
# Initialize dictionaries for each category | ||
with open(input_file, 'r') as file: | ||
keys, values = file.readline().split(','), file.readline().split(',') | ||
data = {k.strip():v.strip() for (k,v) in zip(keys,values)} | ||
# Appends to an already existing mqc.yaml file | ||
with open(mqc_yaml, 'a') as file: | ||
file.write(f' {sample_name}: {data}\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,14 +83,14 @@ | |
<div class="main-block"> | ||
<div class="block-item"> | ||
<h1><b>Nextflow manifest</b></h1> | ||
<p> <b>Pipeline release:</b> 1.4.1</p> | ||
<p> <b>Pipeline release:</b> 1.4.2</p> | ||
<p> <b>Subworkflow:</b> xxSubWorkflowxx</p> | ||
<p> <b> Maintainer:</b> [email protected]</p> | ||
<p> <b>Description:</b> Your data has been processed by the nextflow pipeline singleCellWorkflows. If you want more information on how your data was processed, follow the link below and navigate to your release!</p> | ||
<a href="https://github.com/ctg-lund/singleCellWorkflows/tree/master"> | ||
<button class="btn github" data-provider="github"><i class="fab fa-github"></i><span>GitHub</span></button> | ||
</a> | ||
<a href="https://github.com/ctg-lund/singleCellWorkflows/archive/refs/tags/v1.4.0.tar.gz"> | ||
<a href="https://github.com/ctg-lund/singleCellWorkflows/archive/refs/tags/v1.4.2.tar.gz"> | ||
<button class="btn twitter" data-provider="twitter"><i class="fab "></i><span>Download pipeline release</span></button> | ||
</a> | ||
</div> | ||
|