CNBE5XJUIY22ZD2QNFI3ZIRVSJIBV67WTCXGRQ22J6PZAE6B555AC
5GPEOPYXE4ILKWLJFUVUIIERNH4E2DSDDLZWBSXPUMADL36FHI4QC
RVN6OJTPXQQ7FTXHEB3DE3GSGUYPY4LSJV6SCYSTREQMTVBZ7F7AC
7UCW5ZF74LJ426HTUSTBLYSFGF2GSOY47EH7GZPPRWD3XKVAI4XAC
O727MG7DJVP532ELZM72SQYLBMUJP6NYQAPCAMFSFMHETTJDFSGAC
FXA3ZBV64FML7W47IPHTAJFJHN3J3XHVHFVNYED47XFSBIGMBKRQC
QKBTVGVOJSSQQLMNMVVXD3EXMOTMHWFTVBYMHAP5BVLM5NDIHCEQC
6GPJSOAGZ4RLTIU5EYLDTYY75PKDOPS3X5IVKOJHM7Z2M6APLHBQC
E22LJP4FLYXYGD3WCHOV64RX6H3MOTKQV3ZBZOBWBON6CTL64CCAC
RINTICZBB626O33E6A27VFDRZL7GG2KUT2KYIQCT73AXP6RG4KAQC
XWHLGHWELGQVAY2IYMAQJUREUPLKVQQHTH36WS7WAQNDRNUXM3OAC
3WBY7ELOD4XA65WEV3UCLE6VUAGGF4T27WUYXN75QAOSYRPFEEMAC
AF2HWMUEKWAWLQKJJCJQEKAMZ2CHZHSP24UR5BEMFBBGNJQDRIUAC
4FZ6627CHEHJTPLHE7MF6ZVFJKSDUAKOBGMJZ6QBR2HARWWCXOFQC
**** TODO Faire fonctionner Tests
Problème avec chemin python pour pysam : Tools/__init__.py échoue mais on peut utilise build/bin/hap.py
#+begin_src
nix develop .#hap-py
$ genericBuild
#+end_src
On lance donc les tests à la main (trop d'erreurs sur les chemins)
#+begin_src
# OK !
HCDIR=build/bin build/bin/test_haplotypes
# OK !
bash src/sh/make_hg19.sh
HCDIR=build/bin HG19=hg19.fa bash src/sh/run_multimer
ge_test.sh
#+end_src
Écheck sur
$ HCDIR=build/bin bash src/sh/run_hapenum_test.sh
Traceback (most recent call last):
File "build/bin/hap.py", line 26, in <module>
import pysam
File "/nix/store/3w2v5cl4x6ddq4281awcab9412r5gkaw-python3-3.10.9-env/lib/python3.10/site-packages/pysam/__init__.py", line 4, in <module>
from pysam.libchtslib import *
ImportError: No module named libchtslib
IL faut commenter detect var
#+begin_src slurm
#!/bin/bash
#SBATCH -c 4
#SBATCH -p smp
#SBATCH --time=01:00:00
#SBATCH --mem=32G
module load nix/2.11.0
dir=/Work/Groups/bisonex/data/NA12878/
truth=${dir}/GRCh38/HG001_GRCh38_1_22_v4.2.1_benchmark.vcf.gz
#ref=script/files/vcf/NA12878_NIST7035.vcf
ref=${dir}/precisionChallenge/0GOOR_HG002_chr.vcf.gz
bed=${dir}/GRCh38/HG001_GRCh38_1_22_v4.2.1_benchmark.bed
fasta=/Work/Groups/bisonex/data/genome/GRCh38/GCA_000001405.15_GRCh38_no_alt_analysis_set.fasta
hap.py $truth $ref -f $bed -r $fasta -o test
#+end_src
Même résultats
Type Filter TRUTH.TOTAL TRUTH.TP TRUTH.FN QUERY.TOTAL QUERY.FP QUERY.UNK FP.gt FP.al METRIC.Recall METRIC.Precision
INDEL ALL 467684 174199 293485 1156702 358998 622785 90229 99609 0.372472 0.327615
INDEL PASS 467684 174199 293485 1156702 358998 622785 90229 99609 0.372472 0.327615
SNP ALL 3254352 1410388 1843964 5666020 1953278 2302401 735823 36239 0.433385 0.419293
SNP PASS 3254352 1410388 1843964 5666020 1953278 2302401 735823 36239 0.433385 0.419293
****** Vérifier FN
anaconda3/bin/conda create --name py2 python=2.7
conda activate py2
conda install -c bioconda hap.py
#+end_src
******** Faire tourner les tests.
Il faut remplace bin/test_haplotypes par test_haplotypes dans src/sh/run_tests.sh
#+begin_src sh
HGREF=../genome/GRCh38/GCA_000001405.15_GRCh38_no_alt_analysis_set.fasta HCDIR=~/anaconda3/envs/py2/bin bash src/sh/run_tests.sh
#+end_src
Echec:
test_haplotypes: /opt/conda/conda-bld/work/hap.py-0.3.7/src/c++/lib/tools/Fasta.cpp:81: MMappedFastaFile::MMappedFastaFile(const string&): Assertion `fd != -1' failed.
unknown location(0): fatal error in "testVariantPrimitiveSplitter": signal: SIGABRT (application abort requested)
/opt/conda/conda-bld/work/hap.py-0.3.7/src/c++/test/test_align.cpp(298): last checkpoint
******** Chr21
HGREF=../genome/GRCh38/GCA_000001405.15_GRCh38_no_alt_analysis_set.fasta hap.py example/happy/PG_NA12878_chr21.vcf.gz example/happy/NA12878_chr21.vcf.gz -f example/happy/PG_Conf_chr21.bed.gz -o test
******* Helios
échec
****** avec docker