Skip to content
Snippets Groups Projects
Commit 83e1537d authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Change output of diffPeaks design file.

parent 4a27bcf5
Branches
Tags
No related merge requests found
#!/usr/bin/env nextflow
test = Channel
.fromPath('/work/BICF/s163035/builds/932983dd/2/BICF/Astrocyte/chipseq_analysis/work/ce/59578d09be684276dca671e1aea716/unique_experiments.csv')
.splitCsv(sep: '\t', header: true)
.toList()
println test.size()
// Path to an input file, or a pattern for multiple inputs
// Note - $baseDir is the location of this workflow file main.nf
......@@ -429,12 +436,8 @@ process motifSearch {
}
// Define channel to find number of unique experiments
noUniqueExperiments = uniqueExperiments
uniqueExperimentsList = uniqueExperiments
.splitCsv(sep: '\t', header: true)
.toList()
.count()
println noUniqueExperiments
// Calculate Differential Binding Activity
process diffPeaks {
......@@ -444,6 +447,7 @@ process diffPeaks {
input:
file designDiffPeaks
val noUniqueExperiments from uniqueExperimentsList.count()
output:
......
......@@ -212,8 +212,8 @@ def main():
design_anno.to_csv("design_annotatePeaks.tsv", header=True, sep='\t', index=False)
# Write the unique conditions
unique_experiments = pd.Series(design_diff['Condition'].unique)
unique_experiments.to_csv('unique_experiments.csv')
unique_experiments = pd.DataFrame(design_diff['Condition'].unique().tolist(), columns=['Condition'])
unique_experiments.to_csv('unique_experiments.csv', index=False)
if __name__ == '__main__':
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment