Can not display PSL file in IGV.js

45 views
Skip to first unread message

wanghai...@gmail.com

unread,
Mar 9, 2017, 4:22:02 PM3/9/17
to igv-help
I cannot display PSL alignment file in IGV.js. Here is the configuration file:

<script type="text/javascript">
    $(document).ready(function () {
        var div = $("#igvDiv")[0],
                options = {
                    showNavigation: true,
                    showRuler: true,
                    reference: {
                      fastaURL: "KC580640.fasta"
                    },
                    tracks: [
                        {
                          name: "Bam",
                          type: "alignment",
                          format: "bam",
                          sourceType: "file",
                          url: "B226-PD-15-1068-sorted.bam",
                          viewAsPairs: true,
                          colorBy: "strand"
                        },
                         {
                          name: "Consensus",
                          format: "psl",
                          sourceType: "file",
                          url: "B226-PD-15-1068-contigs.psl"
                        }
                    ]
                };
        igv.createBrowser(div, options);
    });
</script>

Here is the B226-PD-15-1068-contigs.psl file:

psLayout version 3
match   mis-    rep.    N's     Q gap   Q gap   T gap   T gap   strand  Q               Q       Q       Q       T               T       T       T       block   blockSizes      qStarts  tStarts
        match   match           count   bases   count   bases           name            size    start   end     name            size    start   end     count
---------------------------------------------------------------------------------------------------------------------------------------------------------------
2240    0       0       0       0       0       0       0       +       gi|451928385|gb|Test|   2240    0       2240    gi|451928385|gb|KC580640.1|     5278    1400    3640    1       2240,   0,      1400,
1120    0       0       0       0       0       0       0       +       gi|451928385|gb|Test2|  1120    0       1120    gi|451928385|gb|KC580640.1|     5278    4060    5180    1       1120,   0,      4060,

Below is the output:


James Robinson

unread,
Mar 9, 2017, 4:35:08 PM3/9/17
to igv-help
psl files are not yet supported in igv.js.    Please use git to file igv.js issues and requests (github.com/igvteam/igv.js/issues

--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/640d1013-3a12-4166-b316-315cc73f39eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages