mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add chromatin interaction datatype to datatypes.conf, fix bug in data chrint data provider, and enable diagonal heat map track.
This commit is contained in:
@@ -43,6 +43,11 @@
|
||||
<display file="ucsc/bigwig.xml" />
|
||||
<display file="igb/bigwig.xml" />
|
||||
</datatype>
|
||||
<datatype extension="chrint" type="galaxy.datatypes.interval:ChromatinInteractions" display_in_upload="True">
|
||||
<converter file="interval_to_bgzip_converter.xml" target_datatype="bgzip"/>
|
||||
<converter file="interval_to_tabix_converter.xml" target_datatype="tabix" depends_on="bgzip"/>
|
||||
<converter file="interval_to_summary_tree_converter.xml" target_datatype="summary_tree"/>
|
||||
</datatype>
|
||||
<!-- MSI added Datatypes -->
|
||||
<datatype extension="csv" type="galaxy.datatypes.tabular:Tabular" subclass="True" display_in_upload="true" /> <!-- FIXME: csv is 'tabular'ized data, but not 'tab-delimited'; the class used here is intended for 'tab-delimited' -->
|
||||
<!-- End MSI added Datatypes -->
|
||||
|
||||
@@ -1444,7 +1444,7 @@ class ChromatinInteractionsDataProvider( GenomeDataProvider ):
|
||||
"""
|
||||
Provides
|
||||
"""
|
||||
|
||||
|
||||
rval = []
|
||||
message = None
|
||||
for count, line in enumerate( iterator ):
|
||||
@@ -1484,15 +1484,15 @@ class ChromatinInteractionsTabixDataProvider( TabixDataProvider, ChromatinIntera
|
||||
"""
|
||||
"""
|
||||
# Modify start as needed to get earlier interactions with start region.
|
||||
start = max( 0, int( start) - 1000000 )
|
||||
start = max( 0, int( start ) - 1000000 )
|
||||
def filter( iter ):
|
||||
for line in iter:
|
||||
feature = line.split()
|
||||
s1 = int( feature[1] ),
|
||||
e1 = int( feature[2] ),
|
||||
s1 = int( feature[1] )
|
||||
e1 = int( feature[2] )
|
||||
c = feature[3]
|
||||
s2 = int( feature[4] ),
|
||||
e2 = int( feature[5] ),
|
||||
s2 = int( feature[4] )
|
||||
e2 = int( feature[5] )
|
||||
if ( ( c == chrom ) and ( s1 < end and e1 > start ) and ( s2 < end and e2 > start ) ):
|
||||
yield line
|
||||
return filter( TabixDataProvider.get_iterator( self, chrom, start, end ) )
|
||||
|
||||
@@ -4156,7 +4156,7 @@ var addable_objects = {
|
||||
"FeatureTrack": FeatureTrack,
|
||||
"VcfTrack": VcfTrack,
|
||||
"ReadTrack": ReadTrack,
|
||||
// "DiagonalHeatmapTrack": DiagonalHeatmapTrack,
|
||||
"DiagonalHeatmapTrack": DiagonalHeatmapTrack,
|
||||
"CompositeTrack": CompositeTrack,
|
||||
"DrawableGroup": DrawableGroup
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user