stharrold / ARCHIVED_irods_module_iplant

IRODS module for iPlant collaboration.
MIT License
0 stars 0 forks source link

rules/iplant.py: check input .fastq #9

Open stharrold opened 9 years ago

stharrold commented 9 years ago

If using fastq-specific compression methods, check file type with irods isysmeta or with file extension:

# under if __name__ == '__main__'
(base, ext) = os.path.splitext(args.ipath)
if ext != '.fastq':                                                                                                                                      
    raise IOError(("`ipath` file extension is not '.fastq':\n" +  
                    "--ipath {ipath}").format(ipath=args.ipath))