I ma trying ti write some code in order to give the possibility of
parallelize some tasks. Now, I was with the problem of splitting a bam in
some parts, for this I create this simple tool

<parallelism method="multi" split_size="3" split_mode="number_of_parts"
merge_outputs="output" split_inputs="input" ></parallelism>

    java -jar
/home/ralonso/software/GenomeAnalysisTK-3.3-0/GenomeAnalysisTK.jar -T
UnifiedGenotyper -R /home/ralonso/BiB/Galaxy/data/chr_19_hg19_ucsc.fa -I
$input -o $output 2&gt; /dev/null;

    <param format="bam" name="input" type="data" label="bam"/>
      <data format="vcf" name="output" />

But I have one problem, when I execute the tool it goes through this part
of code (I am working in dev branch):

*$galaxy/lib/galaxy/jobs/splitters/multi.py, line 75:*

    for input in parent_job.input_datasets:
        if input.name in split_inputs:
            this_input_files =
            if len(this_input_files) > 1:
                log_error = "The input '%s' is composed of multiple files -
splitting is not allowed" % str(input.name)
                raise Exception(log_error)

So, it is raising the exception because this_input_files=2, concretely:
I guess that:
*dataset_171.dat*: It is the bam file.
*metadata_13.dat*: It is the bai file.

So, Galaxy can't move on and I don't know which would be the best solution.
Maybe change the *if* to check only non-metadata files? I think I should
use both files in order to create the bam sub-files, but this would be
inside the Bam class, under *binary.py* file.
Could you please guide me before I mess things up?

Thanks so much
Roberto Alonso
Functional Genomics Unit
Bioinformatics and Genomics Department
Prince Felipe Research Center (CIPF)
C./Eduardo Primo Yúfera (Científic), nº 3
(junto Oceanografico)
46012 Valencia, Spain
Tel: +34 963289680 Ext. 1021
Fax: +34 963289574
E-Mail: ralo...@cipf.es
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

To search Galaxy mailing lists use the unified search at:

Reply via email to