This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
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 #100 from vib-singlecell-nf/develop
Develop Former-commit-id: cc19ce9
- Loading branch information
Showing
29 changed files
with
455 additions
and
174 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 |
---|---|---|
|
@@ -24,3 +24,5 @@ work/ | |
out/ | ||
tests/ | ||
debug/ | ||
*.swp | ||
*.swo |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
params { | ||
data { | ||
h5ad { | ||
file_paths = '' | ||
suffix = '' | ||
} | ||
} | ||
} |
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,33 @@ | ||
nextflow.preview.dsl=2 | ||
|
||
def extractSample(path, suffix) { | ||
if(!path.endsWith(".h5ad")) | ||
throw new Exception("Wrong channel used for data: "+ path) | ||
// Extract the sample name based on the given path and on the given suffix | ||
suffix = suffix.replace(".","\\.") | ||
pattern = /(.+)\/(.+)${suffix}/ | ||
(full, parentDir, id) = (path =~ pattern)[0] | ||
return id | ||
} | ||
|
||
workflow getChannel { | ||
|
||
take: | ||
glob | ||
sampleSuffixWithExtension // Suffix after the sample name in the file paths | ||
|
||
main: | ||
// Check whether multiple globs are provided | ||
if(glob.contains(',')) { | ||
glob = Arrays.asList(glob.split(',')); | ||
} | ||
channel = Channel | ||
.fromPath(glob, checkIfExists: true) | ||
.map { | ||
path -> tuple(extractSample( "${path}", sampleSuffixWithExtension ), file("${path}")) | ||
} | ||
|
||
emit: | ||
channel | ||
|
||
} |
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
Submodule scanpy
updated
6 files
+43 −22 | bin/reports/sc_bbknn_report.ipynb | |
+5 −5 | bin/reports/sc_clustering_report.ipynb | |
+1 −1 | conf/base.config | |
+12 −2 | processes/reports.nf | |
+3 −2 | workflows/bec_bbknn.nf | |
+1 −1 | workflows/dim_reduction_pca.nf |
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
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
Oops, something went wrong.