Question: How to add a new data type -- "sai"
0
gravatar for 18Kbeyond
14 months ago by
18Kbeyond • 20
New York
18Kbeyond • 20 wrote:

Hi. I need to add a new data type "sai" as an output from bwa aln.

I am reading https://galaxyproject.org/admin/datatypes/adding-datatypes/ but I am not sure what to do for step 3. As I don't need to upload sai files for now I am skipping step 2.

I have done step 1 -- I added the line below to the datatypes section in ./config/datatypes_conf.xml.sample file.

<datatype extension="sai" type="galaxy.datatypes.binary:Sai" subclass="True"/>

My thought is that since it's a binary file like bam, I need to write something similar to what is done to bam in binary.py file and registry.py file under lib/galaxy/datatypes/ directory

sai data type • 378 views
ADD COMMENT • link • modified 14 months ago • written 14 months ago by 18Kbeyond • 20
0
gravatar for 18Kbeyond
14 months ago by
18Kbeyond • 20
New York
18Kbeyond • 20 wrote:

I did these and it works

In binary.py file, add:

class Sai( Binary ):

"""Class describing a Sai file"""

file_ext = "sai"

In registry.py file, add:

'sai' : binary.Sai(),

ADD COMMENT • link written 14 months ago by 18Kbeyond • 20
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 180 users visited in the last hour