Git Product home page Git Product logo

xenomapper's People

Contributors

genomematt avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

na76 lonsbio

xenomapper's Issues

Support for HISAT & other spliced aligners

hisat and other spliced aligners use the XS tag to identify the strand that the match occurs on. Need to implement logic that allows identification of multimapping reads in this context.

Invalid SAM header

Comment field in SAM header is not tab separated from comment resulting in invalid sam files

xenomappability --mapped_test_data error.

While running:
xenomappability --mapped_test_data xenomapper/GRCh38_100_reads_GRCh38_specific.sam > GRCh38_100_reads_GRCh38_specific.wig

Got following error:

Traceback (most recent call last):
File "/home/fernandr/biotools/bin/xenomappability", line 11, in
sys.exit(main())
File "/home/fernandr/biotools/lib/python3.4/site-packages/xenomapper/mappability.py", line 302, in main
single_end_mappability_from_sam(samfile=args.mapped_test_data)
File "/home/fernandr/biotools/lib/python3.4/site-packages/xenomapper/mappability.py", line 183, in single_end_mappability_from_sam
name_pos = int(name.split('
')[1])
ValueError: invalid literal for int() with base 10: 'KI270721v1'_

I guess it's related to chromosome names in reference. As suggested, I used:

GCA_000001405.15_GRCh38_no_alt_analysis_set.fna

Typo in docs

xenomappability is a tool for creating mapability wiggle files that reflect the paired end and multi species nature of the final number more accurately than the commonly used single end mapability tracks.

--paired

Hello,

I have successfully ran xenomapper on xenograft PE WGS data aligned using bwa mem hs37d5 (primary) and mm10 (secondary):

xenomapper --primary_bam "$PRIMARY".merged.dedup.rnsort.test.bam     --secondary_bam "$SECONDARY".merged.dedup.rnsort.test.bam     --primary_specific >(samtools view -bS - > "$PRIMARY"-specific.bam)     --secondary_specific >(samtools view -bS - > "$SECONDARY"-specific.bam)     --unassigned >(samtools view -bS - > "$DIR$SAMPLE"-unassigned.bam)
--------------------------------------------------------------------------------
Read Count Category Summary

|       Category                                     |     Count       |
|:--------------------------------------------------:|:---------------:|
|  primary_multi                                     |             29  |
|  primary_specific                                  |            377  |
|  secondary_multi                                   |              3  |
|  secondary_specific                                |             23  |
|  unresolved                                        |              8  |

However, when I use the --paired option (on the same data) I receive the following error:

xenomapper --primary_bam "$PRIMARY".merged.dedup.rnsort.test.bam     --secondary_bam "$SECONDARY".merged.dedup.rnsort.test.bam     --primary_specific >(samtools view -bS - > "$PRIMARY"-specific.bam)     --secondary_specific >(samtools view -bS - > "$SECONDARY"-specific.bam)     --unassigned >(samtools view -bS - > "$DIR$SAMPLE"-unassigned.bam)     --paired
Traceback (most recent call last):
  File "/home/561/lo6532/.local/bin/xenomapper", line 8, in <module>
    sys.exit(main())
  File "/home/561/lo6532/.local/lib/python3.7/site-packages/xenomapper/xenomapper.py", line 729, in main
    tag_func=tag_func)
  File "/home/561/lo6532/.local/lib/python3.7/site-packages/xenomapper/xenomapper.py", line 398, in main_paired_end
    for line1,line2 in readpairs:
  File "/home/561/lo6532/.local/lib/python3.7/site-packages/xenomapper/xenomapper.py", line 80, in getBamReadPairs
    assert line1[0] == line2[0]
AssertionError

I should also mention, after running xenomapper the primary_specific bam file is returning only single reads which seems strange . Are you able to comment on this?

Any help would be greatly appreciated :) Thanks!

Support for BWAmem GRCh38 alt workflow

Modifications to deal with ALT hits flagged with 0x800 (supplementary) and a variable number of mappings for the same read id.
Xenomapper needs to collect all these as a group, use the maximum score to compare to mouse, and allocate them to the correct read type as a block.
Tests should include cases of unique on alt and multimapping on alt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.