christacaggiano / celfie

cfDNA cell type of origin estimation
GNU Affero General Public License v3.0
29 stars 14 forks source link

Fix genomic coordinates mismatch #3

Closed AntoinePassemiers closed 3 years ago

AntoinePassemiers commented 3 years ago

Hi,

Because I was getting weird results on cfDNA data (getting mostly placental contribution), I discovered I had the same problem as discussed in one of your issues. I updated the code so it automatically reindexes the pandas dataframes to match the genomic coordinates between reference and patients' profiles, and it fixed it.

Also, I made the code a bit more numpy-ish, so it runs faster.

Best regards,

Antoine