Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vincenzo
    Junior Member
    • Feb 2011
    • 4

    #1

    Bfast parallel running

    Dear,
    i am a beginner.
    I have a question about the running of bfast in parallel way.
    _i downloaded the XML schema.
    _ i have all files for the running: .brg, .bif, .fai.,reads.fastq
    My cluster is SGE.
    The input is in the NT space.(from Illumina).
    When i launch ./bfast.submit.pl -config schema.xml the result is:

    "Unable to recognise encoding of this document at /soft/lib/perl5/site_perl/5.8.8/XML/SAX/PurePerl/EncodingDetect.pm line 100.
    The global options were not found."

    The schema.xml is(i modified it for my job):


    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="bfastConfig">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="globalOptions">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="bfastBin" type="directoryPath" value="bfast.submit.pl"/>
    <xs:element name="samtoolsBin" type="directoryPath" value="samtools"/>
    <xs:element name="qsubBin" type="directoryPath"/>
    <xs:element name="FastaFileName" value="phi.x.174.fa" type="filePath" use="required"/>
    <xs:element name="runDirectory" type="directoryPath" use="required"/>
    <xs:element name="readsDirectory" type="directoryPath" use="required"/>
    <xs:element name="outputDirectory" type="directoryPath" use="required"/>
    <xs:element name="tmpDirectory" type="directoryPath" use="required"/>
    <xs:element name="outputID" type="xs:string" use="required"/>
    <xs:element name="cleanUsedIntermediateFiles" type="xs:integer" use="required"/>
    <xs:element name="numReadsPerFASTQ" type="integer" value="1">
    <xs:complexType>
    <xs:attribute name="matchSplit" type="positiveInteger" use="required"/>
    <xs:attribute name="localalignSplit" type="positiveInteger" use="required"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="timing">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="ON"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="queueType" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="SGE"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="space" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="NT"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="matchOptions">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="mainIndexes" type="xs:string"/>
    <xs:element name="secondaryIndexes" type="xs:string"/>
    <xs:element name="offsets" type="xs:string"/>
    <xs:element name="loadAllIndexes" type="xs:integer"/>
    <xs:element name="readCompression">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="none"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="keySize" type="positiveInteger"/>
    <xs:element name="maxKeyMatches" type="positiveInteger"/>
    <xs:element name="maxNumMatches" type="positiveInteger"/>
    <xs:element name="strand">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="BOTH"/>
    <xs:enumeration value="FORWARD"/>
    <xs:enumeration value="REVERSE"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="threads" type="positiveInteger" value="2"/>
    <xs:element name="mergeSeparate" type="xs:integer"/>
    <xs:element name="qsubQueue" type="xs:string"/>
    <xs:element name="qsubArgs" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="localalignOptions">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="offset" type="nonNegativeInteger"/>
    <xs:element name="threads" type="integer" value="2"/>
    <xs:element name="pairedEndLength" type="xs:integer"/>
    <xs:element name="mirrorType" type="xs:integer"/>
    <xs:element name="forceMirror">
    <xs:simpleType>
    <xs:restriction base="xs:integer">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="3"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="qsubQueue" type="xs:string"/>
    <xs:element name="qsubArgs" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="postprocessOptions">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="algorithm">
    <xs:simpleType>
    <xs:restriction base="xs:integer">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="3"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="outputFormat" type="xs:integer"/>
    <xs:element name="threads" type="positiveInteger" value="2"/>
    <xs:element name="qsubQueue" type="xs:string"/>
    <xs:element name="qsubArgs" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="samOptions">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="samtools" type="integer" use="required"/>
    <xs:element name="qsubQueue" type="xs:string"/>
    <xs:element name="qsubArgs" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:simpleType name="filePath">
    <xs:restriction base="xs:string">
    <xsattern value="/home/vincenzo/run_parallel"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="directoryPath">
    <xs:restriction base="xs:string">
    <xsattern value="/home/vincenzo/run_parallel"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="nonNegativeInteger">
    <xs:restriction base="xs:integer">
    <xs:minInclusive value="0"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="positiveInteger">
    <xs:restriction base="xs:integer">
    <xs:minInclusive value="1"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:schema>

    Thanks a lot.
    Please tell me if there is a clear tutorial about this phase of running.
    This is my first post, i hope is clear.
    Bye
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    There is no tutorial about this script and is meant for advanced users. You have not converted the XML schema into a valid XML file. You should first read a tutorial about XML and creating an XML file from an XML schema. For example,
    Code:
    <xs:element name="qsubQueue" type="xs:string"/>
    should be
    Code:
    <qsubQueue>SGE</qsubQueue>
    .

    Comment

    • Vincenzo
      Junior Member
      • Feb 2011
      • 4

      #3
      Can you share a complete file.xml to inspire and help me in the develop of this config file?
      For example a file.xml that you used to run your jobs.
      Thanks a lot

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #4
        Please email the mailing list for further questions: [email protected]. There may be someone on the list who can share their xml configuration file with you.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 11:13 AM
        0 responses
        16 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        17 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...