Skip to content

Commit c02e4da

Browse files
authored
Mvdbeek element identifier (#500)
* Use `element_identifier` to label samples according to their name in the history * Use `element_identifier` instead of `display_name` `element_identifier` corresponds to the sample id in in a collection, while it is equivalent to `name` or `display_name` in normal galaxy history items. * Update test-data for element_identifier changes * Use $sampleLabels also if inferring names from element_identifier * Use the old numpy matrix, since it's reasonable for a PCA. * Copy over the old output files, though the tabular output has been modified slightly. * Correct Galaxy tests
1 parent d6cf17e commit c02e4da

27 files changed

+20
-12
lines changed

deeptools/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# This file is originally generated from Git information by running 'setup.py
33
# version'. Distribution tarballs contain a pre-generated copy of this file.
44

5-
__version__ = '2.4.3'
5+
__version__ = '2.4.3-63-ec898ec'

galaxy/wrapper/bamPEFragmentSize.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
--bamfiles #echo " ".join($files)
1414
#if $samplesLabel:
1515
--samplesLabel #echo " ".join($samplesLabel)
16+
#else:
17+
--samplesLabel #echo " ".join($labels)
1618
#end if
1719
#if $histogram:
1820
--histogram ./hist.png

galaxy/wrapper/deepTools_macros.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,22 @@ is vital to you, select Yes below.">
439439
<![CDATA[
440440
#set files=[]
441441
#set labels=[]
442+
#import re
442443
#if $multibam_conditional.orderMatters == "No":
443444
#for $counter, $bamfile in enumerate($multibam_conditional.bamfiles):
445+
#set identifier = re.sub('[^\.\s\w\-]', '_', str($bamfile.element_identifier))
444446
ln -s "${bamfile}" "./${counter}.bam" &&
445447
ln -s "${bamfile.metadata.bam_index}" "./${counter}.bam.bai" &&
446448
#silent $files.append('%s.bam' % $counter)
447-
#silent $labels.append("'%s'" % ($bamfile.display_name))
449+
#silent $labels.append("'%s'" % identifier)
448450
#end for
449451
#else:
450452
#for $counter, $f in enumerate($multibam_conditional.multibam_repeats):
453+
#set identifier = re.sub('[^\.\s\w\-]', '_', str($f.bamfiles.element_identifier))
451454
ln -s "${f.bamfiles}" "./${counter}.bam" &&
452455
ln -s "${f.bamfiles.metadata.bam_index}" "./${counter}.bam.bai" &&
453456
#silent $files.append('%s.bam' % $counter)
454-
#silent $labels.append("'%s'" % ($f.bamfiles.display_name))
457+
#silent $labels.append("'%s'" % $identifier)
455458
#end for
456459
#end if
457460
]]>
@@ -461,17 +464,20 @@ is vital to you, select Yes below.">
461464
<![CDATA[
462465
#set files=[]
463466
#set labels=[]
467+
#import re
464468
#if $multibigwig_conditional.orderMatters == "No":
465469
#for $counter, $bigwig in enumerate($multibigwig_conditional.bigwigfiles):
470+
#set identifier = re.sub('[^\.\s\w\-]', '_', str($bigwig.element_identifier))
466471
ln -s "${bigwig}" "${counter}.bw" &&
467472
#silent $files.append('%s.bw' % $counter)
468-
#silent $labels.append("'%s'" % ($bigwig.display_name))
473+
#silent $labels.append("'%s'" % $identifier)
469474
#end for
470475
#else:
471476
#for $counter, $f in enumerate($multibigwig_conditional.multibigwig_repeats):
477+
#set identifier = re.sub('[^\.\s\w\-]', '_', str($f.bigwigfiles.element_identifier))
472478
ln -s "${f.bigwigfiles}" "${counter}.bw" &&
473479
#silent $files.append('%s.bw' % $counter)
474-
#silent $labels.append("'%s'" % ($f.bigwigfiles.display_name))
480+
#silent $labels.append("'%s'" % $identifier)
475481
#end for
476482
#end if
477483
]]>

galaxy/wrapper/plotPCA.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
</outputs>
3434
<tests>
3535
<test>
36-
<param name="corData" value="multiBamSummary_result2.npz" ftype="deeptools_coverage_matrix" />
36+
<param name="corData" value="multiBamSummary_result2b.npz" ftype="deeptools_coverage_matrix" />
3737
<param name="plotTitle" value="Test Plot" />
3838
<param name="outFileFormat" value="png" />
3939
<output name="outFileName" file="plotPCA_result1.png" ftype="png" compare="sim_size" delta="4000" />
4040
</test>
4141
<test>
42-
<param name="corData" value="multiBamSummary_result2.npz" ftype="deeptools_coverage_matrix" />
42+
<param name="corData" value="multiBamSummary_result2b.npz" ftype="deeptools_coverage_matrix" />
4343
<param name="plotTitle" value="Test Plot" />
4444
<param name="outFileFormat" value="png" />
4545
<param name="outFileNameData" value="True" />
-13.5 KB
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Groups:
22
genes
33
Samples:
4-
file_0
4+
bamCoverage_result4_bw_0
-22 Bytes
Binary file not shown.
-25 Bytes
Binary file not shown.
6 Bytes
Binary file not shown.
13 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)