IsoInfer V0.7

  1. Source Code
  2. The source code contains two packages: graphlib IsoInfer

  3. Compilation
  4. To compile the source code, you should

    Note that it is necessary to keep the graphlib and isoinfer under the same directory. Environment variable LD_LIBRARY_PATH should be exported like the first step every time when you open a new shell to run the program. I suggest you putting it in the .bashrc file in your home directory.


  5. Manual
  6. Usage:

        IsoInfer <Job> <Options>

    Jobs:

    -h Print help information
    -ext_junc_ref Extract junction ref sequence. Involved parameters are -rstart, -bound, -grange, -tsspas, -ref and -read_info.
    -gen_instance Generate instances of problem for IsoInfer. Expression level will be used to define expressed segments. A segment is expressed if the expression level on this segment is above the noise level specified in the read_info file. Involved parameters are -bound, -grange, -tsspas and -read_info.
    -predict Infer isoforms provided the instances generated by -predict. Involved parameters are -ins, -read_info, -conf_level, -min_exp, -ps, -min_dup, -bse and -o.

    Options:


    -rstart number For job -ext_junc_ref, the parameter specifies the start position of the first neocliotide of a chromosome. This parameter is to make sure that the coordinations used in the program is consistent with the coordinations provided by -bound, -grange and -tsspas. Default 0.
    -bound file Boundary file. The format of the file is :
          chromosome strand position type
    • Every two consecutive fields are separated by a single TAB.
    • Each line corresponds to a boundary with a certain type.
    • The position is always the position of the first base of an exon or intron.
    • 'type' are binary. type = 0 for intron->exon, type = 1 for exon->intron.
    • It is possible that a boundary is both type 0 and type 1. In this case, provide two lines for this boundary, with one line for type 0 and another line for type 1.
    • If type information is unavailable, set types as 0 for all the boundaries.
    -grange file Gene range file. The format of the file is :
          gene_name chromosome strand start_position end_position
    • Every two consecutive fields are separated by a single TAB.
    • Each line corresponds to a gene.
    -tsspas file TSS and PAS file. The format of the file is :
          gene_name TSSs PASs
    • Every two consecutive fields are separated by a single TAB.
    • gene_name should be consistent with the gene range file (specified by -grange).
    • TSSs or PASs are sepereted by commas. In each line, an isoform starting from one element in TSSs must end with some element in PASs on the same line.
    • For a gene, multiple lines may be provided. There is no constraint on different lines.
    -ref file Reference sequence in a single file.
    -read_info file A file storing the basic read information. The format of this file is:
          mapping_file 0/1
          [end_len] cross_strength noise_level total_read_cnt distribution_type
          "definition of a distribution"
    The format for the mapping_file is :
          chromosome strand start_positions end_positions
    • Every two consecutive fields are separated by a single TAB.
    • Each line corresponds to the mapping information of a read. Each read could be mapped to multiple segments of the reference sequence. 'start_positions' ('end_positions) are all the start (end) positions, seperated by commas, of all the segments. This format is similar to the BED format of USCS.
    The second term in a read info file indicates whether the read is paired-end or not. If it is paired-end, set 1 here. Otherwise 0 should be set. If it is 1, then the first item in the following line is the length of each end of the paired-end read. The length of the two ends of a paired-end read is supposed to be the same. If the read is not paired-end read, then the following line starts from "cross_strength". Currently, three type of distribution are supported:
    • 0 Constant: The "definition of a distribution" should be
            the_constant
    • 1 Gaussian distribution: The "definition of a distribution" should be
            mean standard_deviation
    • 2 Customized (Under construction): The "definition of a distribution" should be
            value_cnt
            value probability
            value probability
            ...
    For example, for paired-end reads with span distribution N(300, 30^2) and end length 20. If the mapping file is "my_map_file", cross strength is 3, noise level is 5 RPKM, the number of total reads is 10M. Then the read info file should be:
          my_map_file 1
          20 3 5 10000000 1
          300, 30
    After one read info, another one could be followed in the same file. On job -ext_junc_ref, only the first read info in the file is effective. If, on some job, not all the information in the read info is usefully, then the unused items can be set to any value.

    If there are more than one read infos in this file, the overall noise level is the maximum noise level among all the read infos. When doing job -gen_instance, a segment with expression level below the overall noise level will be considered as an intron. A carefully selected noise level is critical. If the noise level is 0, then all the segments will considered as expressed, which will introduce noise segments in the following isoform predictions. If the noise level is too high, many expressed segments will be considered as introns, which will lower the sensitivity. By our tests, 3~5 is a reasonable value for this parameter.
    -update_read_info T/F Whether to update the read_info file by correcting the "total_read_cnt" in the read info file. This parameter is only effective when short reads are loaded. Default F
    -s T/F Whether the operations are strand specific or not? Default F
    -ins file A file containing instances.
    -min_exp number The minimum expression level. Default 0.
    -min_dup number A junction is covered if at least "min_dup" reads covers this junction. Default 1.
    -bse T/F Use the TSS/PAS information or not.
    -ps number Partition size. Default 7. On whole mouse genome, the isoform inference process (Step4 in the following example) costs about 10 minutes on a standard PC with this default parameter. A larger value is supposed to lead to better results.
    -conf_level number in [0,1] Set the confidence level. Default 0.05.
    -o file A file for output
    • For job -ext_junc_ref, each junction forms two consecutive lines in the file. The odd line is the junction ID which is in the form of :
            >chromosome|position1|position2|cross_len|Junc
      The following schematic graph defines position1 and position2 for a junction

      The even line is the concatenation of sequences [position1, position1+cross_len) and [position2, position2+cross_len)
    • For job -gen_instance, it is OK to treat the output as a black box :-)
    • For job -predict, each line in the output is an predicted isoforms in a format similar to UCSC known genes:
      ID chromosome strand start_position end_position exon_start_positions exon_end_positions



  7. Example:
  8. The following example is based on single-end short reads. In the following example, an example read_info file and several useful scripts are provided. The usages of all the scripts are straightforward. Please read the script for the usages.

    1. Use a script knownGeneExtractor to extract the required files needed by -bound -grange and -tsspas from a knownGene table downloaded from UCSC

            $./knownGeneExtractor knownGene


    2. Modify the the example read_info file as you want.


    3. Extract junction sequences non-strand-specifically

            $isoinfer -ext_junc_ref -s F -rstart 0 -bound Bound -grange GeneRange -tsspas TSSPAS -ref refseq -read_info read_info -o juncref

      Note that the known gene table and the reference sequence you downloaded should be consistent. Only the read length and cross strength in the read_info file is used in this step.

    4. Use Bowtie to map single-end short reads to the reference sequence and junction sequences. You can use the script tranMappedRefReads to extract the mapping information of reads to the reference sequence from the default output of bowtie. You can use the script tranMappedJuncReads to extract the mapping information of reads to junction sequences from the default output of bowtie. Then put the output of these two scripts together, e.g. into file "mapped_reads".


    5. Modify the "mapping_file", "total_read_cnt" in the example read_info file. The "mapping_file" should be "mapped_reads" and "total_read_cnt" should be the total number of mapped short reads including those mapped to the reference sequence and to the junction sequences.


    6. Generate instances for IsoInfer and correct the total number of mapped reads in the read_info file automatically.

            $isoinfer -gen_instance -bound Bound -grange GeneRange -tsspas TSSPAS -read_info read_info -update_read_info T -o my_instances

    7. Predict isoforms given input 'my_instances'. Set -minexp to 1 and all other parameters to default.

            $isoinfer -predict -ins my_instances -min_exp 1 -read_info read_info -o results