m6anet
m6anet copied to clipboard
m6anet-inference error
Dear developers, Thank you for developing this tool. I have encountered two errors when running the inference step for two data.
The version I use is 2.0.2.
I have run the codes as follows for these two data:
find path/to/fastq/ -maxdepth 1 -name "*.fastq" | xargs cat > reads.fastq
seqtk seq -A reads.fastq > reads.fasta
nanopolish index -d /path/to/single/fast5 reads.fasta -s /path/to/sequencing_summary.txt
minimap2 -ax map-ont -t 6 hg19_UCSC_knownGene.fasta reads.fasta | samtools sort -T *.tmp -o reads.sorted.bam
samtools index reads.sorted.bam
nanopolish eventalign --reads reads.fasta --bam reads.sorted.bam --genome hg19_UCSC_knownGene.fasta --scale-events --signal-index --summary each_read_alignment_summary.txt --threads 10 > eventalign.txt
m6anet dataprep --eventalign eventalign.txt --out_dir ./dataprep --n_processes 4
m6anet inference --input_dir ./dataprep --out_dir ./prediction --n_processes 4 --num_iterations 1000
The data preparation fold has 4 files:
data.info
data.json
data.log
eventalign.index
For the first error: Error message:
Traceback (most recent call last):
File "/home/Xichen.Zhao/.local/bin/m6anet", line 8, in <module>
sys.exit(main())
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/__init__.py", line 30, in main
args.func(args)
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/scripts/inference.py", line 86, in main
ds = NanopolishDS(input_dir[0], DEFAULT_MIN_READS, args.norm_path, mode='Inference')
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/utils/data_utils.py", line 100, in __init__
self.set_feature_indices()
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/utils/data_utils.py", line 109, in set_feature_indices
self.total_neighboring_features = self.get_total_neighboring_features()
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/utils/data_utils.py", line 149, in get_total_neighboring_features
kmer, _ = self._load_data(self.data_fpath, tx_id, tx_pos, start_pos, end_pos)
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/utils/data_utils.py", line 185, in _load_data
pos_info = json.loads(json_str)[tx_id][str(tx_pos)]
KeyError: 22
The preview of data.info
:
transcript_id,transcript_position,start,end,n_reads
22,204,0,1909,20
22,221,1909,4208,21
22,249,4208,6381,20
22,357,6381,8315,21
22,648,8315,10576,20
22,699,10576,12580,20
22,1058,12580,14644,20
22,1134,14644,16964,20
22,1281,16964,19433,24
The preview of data.json
:
{"22":{"204":{"GGAACCT":[[0.0073,9.829,116.3,0.00697,5.198,89.8,0.0035468749999999997,1.5630625,83.9,53.0],[0.005723235294117647,7.622029411764706,125.7,0.00531,4.123,95.1,0.00598,2.611,84.7,52.0],[0.014031408450704226,10.374661971830985,115.2,0.00564,1.425,88.2,0.006990952380952381,1.4848571428571429,83.8,49.0],[0.00266,8.427,126.9,0.010174230769230769,2.445653846153846,92.9,0.004182571428571429,1.4531142857142856,88.5,54.0],[0.00498,9.755,117.3,0.011040508474576272,3.035415254237288,97.4,0.01062,1.668,88.8,48.0],[0.0030266666666666667,8.472000000000001,114.8,0.013952815533980584,1.996368932038835,89.8,0.0083,2.014,87.5,44.0],[0.00465,12.101,115.2,0.00664,5.141,95.4,0.004088354430379746,1.8987215189873416,85.3,43.0],[0.00598,9.709,112.5,0.00664,2.568,91.3,0.004866206896551724,2.4143793103448274,83.8,61.0],[0.00996,10.354000000000001,121.3,0.004101176470588236,2.594705882352941,92.8,0.00232,1.709,86.9,51.0],[0.011241194029850746,7.123149253731343,116.9,0.0033529999999999996,3.70455,94.2,0.00282125,2.015,86.8,47.0],[0.0031327777777777777,9.215222222222222,115.0,0.00232,2.505,90.8,0.016325753424657537,2.7550000000000003,83.4,45.0],[0.01595206896551724,10.680103448275862,118.1,0.00432,8.327,100.1,0.007726315789473684,1.389,88.1,46.0],[0.0083,6.615999999999999,130.9,0.00398,3.1010000000000004,99.2,0.0025013333333333333,1.5821333333333334,87.7,60.0],[0.00564,3.923,127.6,0.00531,7.509,93.9,0.010365000000000001,1.5091666666666668,86.6,42.0],[0.005001999999999999,5.788333333333332,122.2,0.00398,3.336,93.2,0.0093,3.498,86.9,50.0],[0.00232,6.05,130.2,0.005605757575757576,3.56169696969697,94.1,0.00863,2.21,83.1,57.0],[0.00398,7.541,105.9,0.00398,2.959,92.0,0.00598,1.18,89.4,41.0],[0.01162,11.753,110.6,0.008012051282051283,2.636,94.3,0.00697,1.759,89.2,55.0],[0.00498,9.864,108.0,0.0156,3.479,90.2,0.00432,2.084,87.8,56.0],[0.01129,9.61,121.0,0.00465,3.064,87.6,0.00531,1.305,89.2,58.0]]}}}
{"22":{"221":{"CGAACTC":[[0.003775909090909091,5.300681818181818,107.9,0.00365,3.114,101.9,0.0093,2.932,93.2,45.0],[0.00631,6.645,111.2,0.00564,4.503,97.1,0.003259189189189189,1.4195945945945945,90.9,56.0],[0.007231267605633802,8.108929577464787,113.0,0.0071689655172413784,3.7290689655172415,100.8,0.005382,1.9102000000000001,92.9,47.0],[0.02379333333333333,4.251666666666667,106.4,0.0025013333333333333,1.4615333333333334,101.0,0.008602702702702704,2.224364864864865,94.8,61.0],[0.003060740740740741,6.939037037037037,113.7,0.00465,9.77,109.6,0.015011612903225809,2.868516129032258,93.1,54.0],[0.00199,3.906,98.0,0.00697,6.9,107.8,0.01394,4.825,96.9,51.0],[0.006898918918918919,7.974594594594595,114.8,0.01394,3.008,100.5,0.00266,2.422,91.8,46.0],[0.005361842105263158,6.627052631578946,113.9,0.02920026315789474,3.3575,100.9,0.006435483870967741,1.7879516129032258,90.7,48.0],[0.00465,9.932500000000001,113.2,0.005228518518518518,3.4221111111111107,96.9,0.003687619047619048,1.0902380952380952,90.6,44.0],[0.00465,9.165000000000001,113.8,0.00365,3.4100000000000006,99.8,0.003926363636363636,1.650090909090909,89.7,53.0],[0.00598,6.779,107.8,0.00598,3.472,103.1,0.00502955223880597,1.8971940298507461,93.3,60.0],[0.00332,5.429,118.2,0.005561428571428571,2.5035,97.8,0.01875990950226244,2.0664886877828055,92.7,41.0],[0.00299,10.11,124.1,0.005242857142857142,1.8744642857142857,100.9,0.006151428571428572,1.5164761904761908,93.8,59.0],[0.00332,5.074,110.6,0.0034025,2.4516750000000003,100.6,0.0073,2.354,92.0,42.0],[0.002045,4.728166666666667,113.5,0.00266,1.913,102.3,0.016015833333333333,2.2732083333333333,92.4,50.0],[0.007640000000000001,8.185,115.6,0.010914923076923077,4.005630769230769,98.5,0.00564,1.896,90.6,43.0],[0.007640000000000001,6.619999999999999,112.8,0.005507241379310345,3.038241379310345,102.3,0.005192903225806452,2.521645161290323,95.6,52.0],[0.004246969696969697,5.289166666666667,112.9,0.00232,3.168,99.4,0.006330909090909092,2.732090909090909,90.4,58.0],[0.009967323943661972,7.280338028169014,111.7,0.00232,2.083,100.5,0.01096,2.35,93.3,49.0],[0.00531,7.887,122.9,0.0043407692307692305,2.585461538461539,99.5,0.003822173913043478,2.5300434782608696,90.0,57.0],[0.0042337500000000005,7.10175,112.3,0.00564,2.774,101.9,0.006636823529411765,2.1777176470588233,92.3,55.0]]}}}
{"22":{"249":{"GTGACAG":[[0.009630000000000001,6.294,96.9,0.01062,9.322,122.0,0.004358297872340425,1.536531914893617,85.6,55.0],[0.004982432432432433,3.12345945945946,96.5,0.00432,6.514,124.1,0.005956764705882352,2.68,82.8,42.0],[0.00299,2.94,98.4,0.00232,11.17,112.0,0.013086415094339622,2.8434716981132078,82.2,59.0],[0.008849999999999998,9.469333333333333,97.5,0.0166,7.007999999999999,118.5,0.01162,2.004,84.9,46.0],[0.00896,2.4640000000000004,102.4,0.008914727272727274,11.071218181818182,118.8,0.006508648648648649,3.969108108108108,83.8,56.0],[0.004861176470588236,4.080882352941177,100.1,0.00531,6.932,115.0,0.010175849056603774,2.5893396226415097,77.3,45.0],[0.00365,2.642,106.9,0.005812871287128712,5.181633663366337,116.6,0.0025013333333333333,2.807866666666667,86.3,52.0],[0.00232,2.475,108.2,0.00996,4.37,126.4,0.018920000000000003,3.155,87.5,47.0],[0.007640000000000001,3.573,100.6,0.00863,6.454,122.9,0.00465,2.358,86.4,61.0],[0.004673571428571429,3.895392857142857,101.5,0.0030266666666666667,7.756555555555557,119.3,0.0036083333333333328,2.7679333333333336,80.5,54.0],[0.00365,6.185999999999999,88.5,0.00498,8.039,110.6,0.00996,2.735,85.4,51.0],[0.010186575342465753,11.527061643835616,97.3,0.0025013333333333333,2.618933333333333,123.4,0.00631,6.2,86.9,41.0],[0.00996,10.668,95.1,0.003926363636363636,7.395909090909091,113.6,0.007546634615384615,2.216769230769231,81.3,53.0],[0.008109252336448599,3.632392523364486,94.3,0.00266,5.167,118.7,0.007672960725075528,3.8919607250755286,82.2,60.0],[0.005888676470588236,7.108029411764707,99.4,0.009630000000000001,8.185,122.4,0.0033529999999999996,2.37735,84.7,49.0],[0.003461052631578947,3.1139736842105266,100.2,0.003775909090909091,8.2425,116.4,0.00702875,2.0836375,83.5,57.0],[0.015193461538461538,12.426339743589743,97.4,0.00564,6.344,108.1,0.016782222222222223,3.2267777777777775,82.8,48.0],[0.005533333333333334,5.739000000000001,97.0,0.00598,4.199,119.5,0.0093,4.751,86.6,43.0],[0.002834705882352941,2.4421764705882354,99.5,0.02523,14.682000000000002,117.2,0.008069894736842106,2.4281684210526313,83.2,50.0],[0.00797,7.315,102.8,0.00465,6.046,121.9,0.0065130769230769235,2.230923076923077,83.6,44.0]]}}}
{"22":{"357":{"TGAACAT":[[0.01295,10.71,113.2,0.010149344262295083,1.8844918032786886,93.2,0.00465,2.491,88.3,57.0],[0.00564,9.586,121.7,0.005001999999999999,3.1468,95.2,0.00598,3.666,87.2,56.0],[0.0040004347826086955,8.312782608695652,114.4,0.008122972972972974,2.2072702702702705,92.6,0.004771578947368421,1.8144999999999998,86.2,50.0],[0.0073,10.016,118.7,0.00821469387755102,2.2105102040816327,93.7,0.00332,1.892,84.4,46.0],[0.01361,11.142,116.2,0.00398,1.668,95.5,0.0035557142857142857,2.155,88.5,52.0],[0.01062,7.577,104.8,0.00299,1.99,94.9,0.00398,3.167,88.7,54.0],[0.00398,7.921,118.0,0.00797,2.4065,94.2,0.01911348623853211,2.312853211009174,87.4,48.0],[0.01062,6.698,104.9,0.00564,2.842,93.8,0.010142380952380953,2.4991587301587304,84.7,47.0],[0.00332,6.737,124.8,0.00266,2.168,94.9,0.00398,2.14,88.6,61.0],[0.00199,4.982,118.2,0.00266,2.315,98.1,0.00598,2.285,92.9,55.0],[0.00631,11.745,116.7,0.008251428571428571,3.2057142857142855,94.4,0.0038852173913043477,1.8523043478260868,85.6,59.0],[0.0062140625,8.272703125,116.6,0.00199,2.144,96.0,0.01295,2.824,85.7,58.0],[0.010069999999999999,9.200000000000001,112.9,0.02125,2.316,93.4,0.004820689655172413,2.080655172413793,85.4,51.0],[0.00564,12.603,111.0,0.00232,1.049,95.0,0.0030266666666666667,1.985111111111111,87.3,53.0],[0.00398,6.483999999999999,118.9,0.00386625,1.9536770833333332,95.8,0.01328,2.689,97.0,60.0],[0.01361,7.218,125.3,0.009329811320754718,2.931490566037736,98.6,0.00432,2.945,93.0,49.0],[0.00398,10.607,117.1,0.03670457364341085,2.767093023255814,93.7,0.004457021276595745,1.8418510638297874,88.4,41.0],[0.005001999999999999,10.3798,114.8,0.007640000000000001,2.406,94.9,0.0091325,2.07325,89.8,44.0],[0.00398,6.267,118.7,0.00697,3.412,96.6,0.00398,2.287,91.2,42.0],[0.00465,8.417,119.1,0.0074346428571428575,2.4681607142857147,93.3,0.01959,2.185,93.1,43.0],[0.01262,11.073,114.2,0.004544615384615384,1.886153846153846,93.6,0.005776,2.9651,85.1,45.0]]}}}
{"22":{"648":{"AGGACCA":[[0.007096111111111112,7.126518518518519,115.3,0.01394,9.056,116.3,0.005762608695652174,1.655326086956522,78.1,44.0],[0.011855963302752294,7.227174311926606,115.2,0.006181875,7.622375000000001,121.3,0.009628,1.9182,78.9,56.0],[0.00332,3.687,115.0,0.010839411764705882,7.666058823529413,120.2,0.015538000000000003,3.1963999999999997,80.9,41.0],[0.002696875,4.1998125,114.8,0.0030266666666666667,5.292333333333334,118.4,0.01859,3.9809999999999994,79.4,53.0],[0.01783054054054054,8.877772972972974,113.5,0.0032257142857142857,5.8022857142857145,120.9,0.008190756302521009,2.5783781512605044,82.1,52.0],[0.01328,9.7,116.1,0.01162,8.059,122.6,0.0083,5.6659999999999995,85.3,57.0],[0.00365,6.282,115.6,0.013687777777777778,8.155666666666667,121.5,0.005776,3.2933999999999997,82.9,42.0],[0.0132352688172043,7.165204301075269,115.6,0.00432,4.942000000000001,121.6,0.006771612903225806,3.601693548387097,81.6,51.0],[0.00863,4.684,114.7,0.02656,5.477,122.3,0.009805981873111783,3.241247734138973,81.5,48.0],[0.00232,8.718,122.2,0.011017777777777777,7.6531777777777785,117.0,0.013863440000000001,2.75452,81.1,54.0],[0.008858627450980393,7.766627450980392,117.3,0.004369722222222223,2.377972222222222,126.2,0.00631,2.288,81.2,45.0],[0.01726,12.623999999999999,114.2,0.012643055555555555,7.6903749999999995,122.1,0.0156,5.234,81.7,55.0],[0.009990099009900989,8.382267326732673,114.5,0.005852857142857142,8.492542857142857,123.7,0.017830000000000002,4.687831325301206,84.3,60.0],[0.00498,4.792,120.0,0.003233157894736842,3.2148421052631577,120.6,0.009358367346938776,5.4136326530612235,82.6,58.0],[0.00598,10.754,119.6,0.00365,3.3569999999999998,125.8,0.006252162162162162,3.077945945945946,82.0,62.0],[0.008338169014084507,5.047253521126761,117.4,0.0050725862068965516,10.165155172413792,115.5,0.01057303370786517,2.5501011235955056,80.7,46.0],[0.00432,3.832,122.4,0.0083,14.562999999999999,110.7,0.009579397590361445,2.4972289156626504,80.6,47.0],[0.0048662857142857145,6.3026285714285715,112.8,0.0093,6.433,117.0,0.010313295454545455,1.746159090909091,79.3,43.0],[0.00432,8.921,112.6,0.009726930693069305,10.10380198019802,119.6,0.00863,2.764,75.8,50.0],[0.00531,3.336,117.2,0.00266,2.82,126.0,0.008549464285714285,4.494910714285714,82.3,59.0]]}}}
{"22":{"699":{"AGGACCC":[[0.01129,8.316,112.8,0.00266,2.633,120.6,0.00232,4.567,77.1,45.0],[0.01818119718309859,5.285411971830986,114.4,0.01295,7.006999999999999,115.0,0.008057368421052633,1.795263157894737,79.5,41.0],[0.006564769230769231,5.610851282051282,114.8,0.00564,2.233,117.9,0.018939705882352942,9.182,79.6,57.0],[0.03121,8.145,111.9,0.00332,4.419,116.5,0.0083,3.648,79.7,59.0],[0.03364317073170732,4.659,114.2,0.00432,11.065,117.4,0.009028,1.2752000000000001,79.2,44.0],[0.016620223880597015,7.083425373134329,114.3,0.00996,9.991000000000001,121.2,0.00863,3.455,79.1,46.0],[0.009630000000000001,8.006,113.8,0.0032976470588235293,5.834411764705883,121.7,0.008122972972972974,2.42427027027027,84.4,62.0],[0.00937768115942029,7.469782608695652,113.5,0.01754453608247423,5.521969072164948,120.8,0.00432,1.87,81.3,48.0],[0.02360716666666667,6.239133333333334,116.3,0.00664,8.167,120.6,0.0034315384615384616,2.663820512820513,83.3,60.0],[0.010998636363636363,4.994757575757576,114.4,0.0031327777777777777,6.976444444444444,116.0,0.00498,2.7760000000000002,76.3,50.0],[0.011202941176470589,4.600333333333333,115.8,0.00631,11.137,116.9,0.00498,2.9709999999999996,80.3,54.0],[0.016591641791044776,9.883253731343283,112.1,0.0034716666666666663,5.930000000000001,120.3,0.00531,4.406,81.0,49.0],[0.00266,5.048,104.0,0.01162,11.418,113.5,0.011807391304347825,1.9222173913043477,76.6,56.0],[0.009560558375634517,5.492431472081218,114.8,0.0036948387096774195,3.6900967741935484,117.5,0.00697,4.158,80.2,43.0],[0.00697,8.0855,113.3,0.005853114754098361,4.853950819672131,120.0,0.01029,4.166,79.5,53.0],[0.00199,2.907,112.9,0.05146,6.722,108.8,0.004031428571428571,2.540142857142857,79.3,61.0],[0.01162,8.567,114.9,0.00266,2.308,123.5,0.00299,2.097,81.2,55.0],[0.00232,3.706,110.4,0.03785000000000001,5.944,115.0,0.004780740740740741,1.883,78.2,42.0],[0.020107007299270074,5.63580291970803,115.0,0.01793,6.138,117.0,0.01029,2.678,81.7,51.0],[0.00797,8.005,116.3,0.01494,8.444,119.8,0.00332,2.385,79.9,47.0]]}}}
{"22":{"1058":{"CAGACCC":[[0.00531,7.273,96.3,0.014435243902439027,3.2034756097560977,126.4,0.00498,5.481,77.5,50.0],[0.002696875,4.5483125,106.6,0.009737466666666665,2.5088933333333334,129.4,0.01029,2.717,85.6,62.0],[0.00598,6.188,107.7,0.009630000000000001,8.823,126.8,0.00465,4.646,79.7,49.0],[0.01195,7.48,109.3,0.010916197183098593,5.607619718309858,125.3,0.00232,4.206,77.9,45.0],[0.005150322580645161,7.974645161290322,107.8,0.004406470588235294,6.001333333333333,123.1,0.00232,4.725,79.1,42.0],[0.0040004347826086955,7.291869565217391,103.7,0.004573789473684211,2.789136842105263,127.9,0.00465,3.059,78.1,56.0],[0.006247176470588235,5.226364705882353,101.6,0.0044218,3.29656,128.6,0.014279999999999998,7.0785,82.6,48.0],[0.0031683783783783784,5.326027027027027,103.6,0.010790625,4.354312500000001,126.7,0.00564,2.811,79.9,65.0],[0.00299,5.556,100.0,0.02025,2.856,127.6,0.004181590909090909,1.761068181818182,80.2,64.0],[0.00232,6.945,106.4,0.007787454545454546,1.9095909090909091,128.5,0.00564,5.196,78.0,61.0],[0.00398,8.204,106.4,0.009406478873239437,8.19412676056338,127.2,0.00299,3.178,76.3,63.0],[0.00299,3.693,103.7,0.012119375,2.9781875,127.9,0.00863,6.6850000000000005,85.6,55.0],[0.00398,9.856,105.7,0.0052623170731707315,2.4655243902439024,128.1,0.010569777777777779,7.036066666666667,78.6,58.0],[0.01295,5.25,106.1,0.013157459349593496,2.5172256097560974,127.9,0.00531,2.907,78.5,43.0],[0.00299,6.402,110.5,0.0064192452830188675,2.817622641509434,127.9,0.003912121212121212,5.877272727272727,86.9,60.0],[0.012094444444444444,5.174994444444445,97.3,0.014031980198019801,2.5024851485148516,127.8,0.00859,3.689609756097561,76.7,53.0],[0.007509649122807017,6.1678771929824565,105.7,0.017273700440528634,2.747464757709251,128.6,0.004735454545454546,3.874181818181819,81.8,46.0],[0.002696875,4.301375,108.9,0.013280515463917524,2.7119948453608247,127.9,0.00697,3.372,78.5,44.0],[0.00432,7.611,107.7,0.02789,6.416000000000001,126.8,0.00365,5.875,80.9,51.0],[0.00531,5.334,102.0,0.006415031055900622,2.564869565217391,129.2,0.00432,4.484,85.4,66.0]]}}}
{"22":{"1134":{"AGAACCT":[[0.004535555555555556,3.8675555555555556,131.7,0.010423050847457626,2.837677966101695,98.5,0.00465,2.435,86.7,60.0],[0.00664,7.816,131.8,0.007679206349206349,4.897396825396825,92.9,0.00578103448275862,2.953931034482759,82.7,65.0],[0.018184615384615386,8.509076923076922,127.7,0.00664,4.111,91.1,0.00398,2.733,83.1,54.0],[0.01262,6.99,129.1,0.00398,5.461000000000001,94.9,0.0034519999999999993,1.5188,87.3,50.0],[0.00526404761904762,4.840142857142857,130.8,0.007741946308724833,3.495281879194631,96.4,0.00564,4.994,92.5,64.0],[0.01133263888888889,3.4359166666666665,133.6,0.004255957446808511,3.9972340425531914,92.4,0.0034928571428571426,1.9133333333333333,84.5,49.0],[0.011359833333333331,4.916425,131.7,0.0050680000000000005,6.038133333333334,96.0,0.006722678571428572,2.7469642857142857,85.1,68.0],[0.009646190476190477,4.973190476190476,131.6,0.0042337500000000005,2.4256249999999997,93.6,0.00564,4.395,83.9,63.0],[0.008106048387096774,4.183959677419355,131.5,0.00332,7.086,97.1,0.00398,3.366,79.7,43.0],[0.009130000000000001,10.004750000000001,129.5,0.005395581395348837,6.036674418604651,92.5,0.004406923076923077,2.584538461538462,79.0,53.0],[0.0033645945945945947,7.519648648648648,132.4,0.00564,6.226,95.8,0.005108055555555556,2.5418333333333334,80.1,56.0],[0.0051221518987341775,5.900696202531646,129.7,0.00498,5.276,97.8,0.012173333333333333,4.302333333333333,85.6,45.0],[0.00962125,5.373275,131.9,0.01295,5.227,94.0,0.005398125,2.7875625,82.5,58.0],[0.0036334375,4.03396875,132.3,0.01129,4.693,96.2,0.0031327777777777777,1.8418333333333337,86.7,42.0],[0.018616161369193154,3.8163374083129584,135.7,0.009098666666666668,4.087466666666666,99.3,0.00631,3.6080000000000005,86.2,62.0],[0.00398,5.905,137.1,0.006078620689655172,4.455620689655172,100.3,0.004095833333333333,2.6500833333333333,85.2,51.0],[0.008122558139534884,5.9205930232558135,128.1,0.00498,3.676,90.3,0.00398,3.955,83.0,44.0],[0.005242641509433962,6.808698113207547,130.5,0.00299,3.9889999999999994,96.7,0.004372916666666667,3.0133194444444444,81.4,48.0],[0.014526250000000001,6.252249999999999,132.0,0.0049776744186046515,3.3956976744186043,96.3,0.0042337500000000005,2.497875,82.1,46.0],[0.005882727272727273,6.819727272727272,130.3,0.00503,3.182928571428571,93.5,0.007947938144329897,2.357340206185567,84.1,61.0]]}}}
{"22":{"1281":{"TGAACCA":[[0.004133636363636364,7.614818181818182,122.6,0.00498,4.265,93.4,0.0041567999999999996,2.29616,85.8,65.0],[0.00664,7.382,132.4,0.0035902380952380956,2.5767380952380954,97.8,0.0030266666666666667,1.5966666666666667,84.9,61.0],[0.00631,9.736,130.0,0.00498,3.759,99.2,0.00365,3.0260000000000002,87.1,69.0],[0.00564,10.167,123.0,0.003914666666666666,5.658966666666667,96.0,0.00417304347826087,1.7354347826086955,83.2,68.0],[0.00398,10.771,119.3,0.0077883928571428574,3.614607142857143,100.0,0.0033086206896551723,1.560551724137931,87.3,67.0],[0.00365,9.611,119.0,0.006991875,3.7440937499999998,94.9,0.01077595744680851,1.8123191489361703,82.8,56.0],[0.00598,12.548,124.2,0.00398,6.453,98.8,0.007640000000000001,2.021,82.9,53.0],[0.007223333333333333,9.889404761904762,122.2,0.010457619047619047,3.7607142857142857,95.6,0.007640000000000001,2.783,85.4,49.0],[0.003060740740740741,5.462666666666667,123.0,0.0031636842105263155,4.4120526315789474,94.8,0.0083,1.725,86.1,46.0],[0.00232,4.278,135.2,0.0089496,4.91132,99.9,0.006506052631578947,2.3728881578947365,81.1,42.0],[0.010457735849056604,2.6567924528301887,111.3,0.0056826415094339625,2.970283018867925,99.8,0.012734532374100717,1.947338129496403,80.0,62.0],[0.00465,7.842,124.6,0.004012916666666667,3.604125,96.3,0.00564,3.691,82.8,43.0],[0.00199,2.084,102.6,0.011277560975609757,4.298890243902439,93.8,0.009630000000000001,1.6,77.3,55.0],[0.00266,5.878,132.8,0.008566307692307693,3.8413076923076925,97.0,0.00564,2.708,84.4,58.0],[0.010358000000000001,6.906999999999999,115.3,0.00365,1.8129999999999997,94.0,0.00266,1.498,81.2,63.0],[0.005940212765957447,4.378531914893617,117.4,0.00697,3.6660000000000004,96.6,0.0053820000000000005,1.5092,84.9,64.0],[0.00531,6.91,129.0,0.00332,3.248,93.8,0.005111086956521739,1.9500652173913045,85.2,44.0],[0.003368421052631579,8.71984210526316,122.0,0.00398,6.803,90.8,0.00896,2.853,82.3,45.0],[0.0031911538461538457,6.979230769230769,126.4,0.00398,3.573,94.9,0.00332,2.469,82.4,48.0],[0.00266,10.0,121.5,0.00531,3.96,97.2,0.005330625,3.0468124999999997,84.1,50.0],[0.00232,8.272,125.4,0.00531,4.703,97.5,0.00299,2.831,83.7,51.0],[0.00232,6.967999999999999,123.4,0.012506666666666668,4.399666666666667,94.7,0.013130434782608698,2.608641304347826,83.8,54.0],[0.0033529999999999996,4.73305,125.3,0.01162,3.45,103.9,0.00232,2.906,86.8,60.0],[0.0022753846153846157,7.915461538461538,130.0,0.00498,4.794,93.6,0.005551527777777778,2.641013888888889,85.5,66.0]]}}}
{"22":{"1356":{"GGGACTC":[[0.01162,1.9,124.3,0.00531,6.782,125.5,0.0042337500000000005,2.647875,90.3,53.0],[0.01129,4.058,118.1,0.00365,3.406,120.6,0.00542475,1.144875,91.3,56.0],[0.014861200000000003,4.07888,117.8,0.00664,2.048,118.7,0.0043407692307692305,3.226153846153846,90.4,54.0],[0.011517065868263473,3.2072335329341315,118.6,0.006612285714285714,4.6769428571428575,119.6,0.01295,5.627,89.6,48.0],[0.00631,5.263,117.9,0.00232,4.565,120.9,0.00266,3.91,92.7,46.0],[0.006932727272727272,5.254969696969696,117.5,0.00697,5.03,119.3,0.00598,1.537,91.4,51.0],[0.012767142857142857,3.4414571428571428,117.8,0.00332,1.722,121.0,0.00465,3.117,90.6,67.0],[0.00531,3.625,119.3,0.01142462686567164,7.4244776119403,125.8,0.006576410256410256,1.6462564102564101,89.0,44.0],[0.008611999999999998,4.62804705882353,119.1,0.00166,8.478,113.2,0.007353181818181818,2.974909090909091,91.6,64.0],[0.00896,4.423,119.2,0.00332,2.703,123.2,0.015845,3.4072000000000005,90.6,60.0],[0.010454074074074074,2.6324074074074075,120.9,0.00896,5.28,117.3,0.00863,1.839,87.6,66.0],[0.01743569230769231,5.901615384615384,117.4,0.008489495798319327,4.196033613445379,119.8,0.006796851851851852,1.5031111111111113,88.9,50.0],[0.00266,4.11,114.8,0.00996,3.912,120.0,0.00598,2.359,93.0,61.0],[0.01062,6.782,125.1,0.00365,4.857,129.0,0.007545909090909092,1.647409090909091,93.8,63.0],[0.00232,1.877,117.0,0.00398,3.689,121.8,0.00266,2.73,93.0,58.0],[0.019926222222222224,4.1154222222222225,119.0,0.00896,3.806,118.1,0.00598,2.749,87.4,62.0],[0.014279999999999998,3.1239999999999997,123.2,0.004417307692307693,6.602384615384614,125.2,0.00232,1.781,92.1,55.0],[0.00814962962962963,3.0507901234567902,119.8,0.00332,1.691,116.8,0.0042337500000000005,7.426624999999999,94.7,42.0],[0.00797,4.985,115.0,0.008483312101910829,3.261057324840764,123.8,0.01361,6.244000000000001,93.8,49.0],[0.009630000000000001,2.756,118.3,0.00365,2.008,117.2,0.0083,2.505,91.6,65.0],[0.00996,2.49,122.1,0.010322234042553191,4.2204893617021275,124.7,0.00299,6.085,97.2,43.0],[0.0083,3.51,117.5,0.01129,5.322,120.7,0.0034660674157303366,2.089494382022472,90.4,69.0]]}}}
For the second error: Error message:
Traceback (most recent call last):
File "/home/Xichen.Zhao/.local/bin/m6anet", line 8, in <module>
sys.exit(main())
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/__init__.py", line 30, in main
args.func(args)
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/scripts/inference.py", line 86, in main
ds = NanopolishDS(input_dir[0], DEFAULT_MIN_READS, args.norm_path, mode='Inference')
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/utils/data_utils.py", line 100, in __init__
self.set_feature_indices()
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/utils/data_utils.py", line 109, in set_feature_indices
self.total_neighboring_features = self.get_total_neighboring_features()
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/utils/data_utils.py", line 149, in get_total_neighboring_features
kmer, _ = self._load_data(self.data_fpath, tx_id, tx_pos, start_pos, end_pos)
File "/home/Xichen.Zhao/.local/lib/python3.8/site-packages/m6anet/utils/data_utils.py", line 184, in _load_data
json_str = f.read(end_pos - start_pos)
TypeError: argument should be integer or None, not 'float'
The preview of data.info
:
transcript_id,transcript_position,start,end,n_reads
74.0,382,0,2105,22
74.0,421,2105,4637,25
74.0,883,4637,6921,24
74.0,1044,6921,9612,26
74.0,1166,9612,11952,24
74.0,1223,11952,14384,24
74.0,1260,14384,17788,30
74.0,1405,17788,20300,28
74.0,1422,20300,23438,30
The preview of data.json
:
{"74.0":{"382":{"GGGACCT":[[0.01594,3.23,114.3,0.00697,5.258,119.3,0.01461,3.6600000000000006,82.2,210.0],[0.011452364864864865,6.552466216216217,119.7,0.00398,9.635,121.1,0.0043159999999999995,3.821,75.6,225.0],[0.017873751743375174,4.896963737796374,116.4,0.0093,2.549,126.2,0.004633703703703703,5.280888888888889,79.9,215.0],[0.010254464285714285,9.872553571428572,118.3,0.019031495327102806,11.415383177570092,112.6,0.01129,2.559,72.6,203.0],[0.0073,2.767,117.0,0.01228,8.024,124.2,0.00232,3.589,74.2,205.0],[0.004012916666666667,1.8577083333333333,119.3,0.01029,6.34,118.5,0.00365,2.504,77.8,208.0],[0.00232,2.162,120.3,0.00432,5.866,112.6,0.00232,8.9,76.4,224.0],[0.019976296296296298,5.52048888888889,115.4,0.006217142857142858,4.458734693877552,121.8,0.017666173913043478,2.7962521739130435,78.7,206.0],[0.016565336787564767,4.653186528497409,116.6,0.00996,2.261,118.7,0.01262,4.878,78.4,216.0],[0.01122849315068493,4.655164383561644,119.9,0.00166,12.76,104.0,0.002908235294117647,2.642764705882353,77.2,204.0],[0.00332,3.401,110.4,0.0073,9.568,119.8,0.00564,2.669,78.1,219.0],[0.010346081081081081,6.59795945945946,114.7,0.00498,6.172,117.2,0.0073,2.439,69.6,207.0],[0.005906190476190476,5.3842936507936505,118.6,0.00465,8.713,119.9,0.00465,2.372,78.9,220.0],[0.00631,2.947,112.3,0.022972439024390244,6.374670731707318,111.8,0.00332,1.6039999999999999,69.8,218.0],[0.00266,3.802,116.0,0.013248,5.291146666666667,111.9,0.00266,1.666,73.0,213.0],[0.01044376811594203,6.291463768115942,117.3,0.013223636363636363,6.811181818181819,115.9,0.00432,2.232,78.4,221.0],[0.00365,4.074,117.0,0.02236504347826087,5.080913043478262,113.9,0.01726,5.475,78.5,217.0],[0.0083,3.259,115.5,0.00797,5.048,116.7,0.02258,2.447,70.0,211.0],[0.01129,6.305,113.5,0.04117,6.753000000000001,114.1,0.00232,3.637,76.6,209.0],[0.00948186440677966,4.286042372881356,119.1,0.002696875,6.1388125,120.6,0.010769540229885056,2.937310344827586,75.6,200.0],[0.00598,3.373,119.8,0.00896,8.154,121.9,0.00398,3.1590000000000003,77.9,199.0],[0.00631,6.083,115.4,0.00365,4.74,124.0,0.009478636363636363,2.3361363636363635,76.6,201.0]]}}}
{"74.0":{"421":{"AAAACCT":[[0.023804388185654012,2.7192447257383967,108.7,0.00199,3.781,101.8,0.00598,2.044,87.6,200.0],[0.00365,1.511,107.8,0.00232,2.288,102.8,0.00266,2.976,90.3,219.0],[0.002504090909090909,2.2724090909090906,112.1,0.00664,3.85,106.7,0.00664,2.814,87.0,218.0],[0.005398125,2.2536875,109.0,0.0093,3.549,102.9,0.00697,2.211,90.6,217.0],[0.008809090909090907,3.236545454545454,104.9,0.0073997916666666665,1.2399166666666666,92.2,0.0030266666666666667,1.2396666666666667,88.6,212.0],[0.027637300613496934,2.793717791411043,108.5,0.03154,4.842,99.9,0.006010166666666666,2.3629333333333333,86.3,223.0],[0.01243012658227848,2.6872341772151898,107.4,0.00531,1.724,90.9,0.00631,2.049,85.4,210.0],[0.01195,2.53,111.7,0.00564,1.119,96.5,0.00365,2.32,92.3,211.0],[0.011107096774193548,2.4637290322580645,110.6,0.01295,3.45,101.1,0.017965384615384616,1.8717230769230768,84.4,203.0],[0.00398,1.8800000000000001,109.9,0.00631,4.01,103.2,0.00564,2.162,90.2,221.0],[0.005228518518518518,2.2204074074074076,108.8,0.00564,1.847,93.8,0.00564,2.013,91.5,205.0],[0.00631,2.827,105.6,0.00398,2.174,90.6,0.00398,1.555,86.2,213.0],[0.0166,4.248,109.9,0.00299,5.563,97.0,0.0031843243243243244,2.430216216216216,83.9,207.0],[0.007640000000000001,4.256,104.3,0.00199,1.646,90.8,0.00631,1.085,72.7,201.0],[0.016719285714285714,2.3221666666666665,107.7,0.012019701492537312,4.485388059701492,98.1,0.0031636842105263155,2.3730526315789473,84.4,204.0],[0.004546739130434783,2.013108695652174,110.6,0.009630000000000001,2.746,105.6,0.007640000000000001,1.347,89.9,208.0],[0.00232,2.028,104.2,0.00365,2.509,91.0,0.00465,1.9760000000000002,87.1,209.0],[0.013011095890410959,2.4087671232876713,111.5,0.014279999999999998,2.791,108.5,0.00465,2.361,90.7,216.0],[0.008825573770491802,1.9393278688524591,108.0,0.0030266666666666667,2.7993333333333337,96.5,0.00332,1.746,86.9,202.0],[0.03524296078431373,3.8762725490196077,108.5,0.0164946875,3.8065625,101.3,0.013390645161290323,1.9817096774193546,86.7,225.0],[0.0066276,2.9322399999999997,109.8,0.00299,1.324,90.9,0.00398,3.1199999999999997,88.5,206.0],[0.009386981132075471,2.8385283018867926,108.2,0.00365,2.32,103.0,0.003914666666666666,2.2876333333333334,81.3,224.0],[0.00758164705882353,2.6454588235294114,109.0,0.008044772727272727,4.536409090909091,101.1,0.00631,1.792,87.7,220.0],[0.01129,3.825,103.7,0.004315333333333334,2.2586333333333335,96.7,0.005408064516129032,2.0862580645161293,88.8,199.0],[0.00465,2.252,112.7,0.00332,2.204,93.2,0.0043407692307692305,1.8637692307692306,91.4,215.0]]}}}
{"74.0":{"883":{"AGGACAT":[[0.0083188,5.4967371428571425,113.6,0.00631,3.568,117.3,0.0166,7.501,86.4,212.0],[0.013290382513661202,3.625551912568306,116.3,0.00398,1.82,115.8,0.00598,4.086,78.6,210.0],[0.00797,2.8830000000000005,119.4,0.00417304347826087,4.811999999999999,109.9,0.00631,3.533,74.9,211.0],[0.013853636363636363,5.841181818181819,112.4,0.01096,4.788,112.6,0.00299,1.53,76.8,203.0],[0.008214545454545454,6.305784090909092,113.3,0.0025013333333333333,2.923866666666667,117.5,0.00365,3.136,77.5,221.0],[0.012420260552371026,6.973650338718082,118.3,0.016146432432432432,6.292048648648649,117.6,0.00199,12.505,86.2,215.0],[0.00896,5.890999999999999,110.2,0.01129,6.587,110.9,0.00564,2.147,74.7,205.0],[0.00332,9.843,112.2,0.02058,7.7,114.2,0.00498,2.543,75.2,213.0],[0.01461,9.767,109.1,0.009448,5.109274999999999,115.0,0.00365,1.29,78.2,207.0],[0.01228,4.13,116.5,0.00797,7.952000000000001,122.7,0.00398,4.006,82.3,201.0],[0.01494,6.091,109.5,0.01793,5.809000000000001,113.7,0.00232,1.946,77.8,204.0],[0.00266,6.429,118.9,0.02324,6.104,114.7,0.004012916666666667,3.2845833333333334,85.0,208.0],[0.012934137931034484,7.114172413793105,114.0,0.00895425,4.9056875,113.2,0.00398,2.38,78.6,209.0],[0.00855578947368421,3.8020789473684204,118.5,0.008624901960784314,6.180274509803921,121.6,0.004531749999999999,4.225199999999999,87.8,200.0],[0.0065130769230769235,8.369384615384616,112.9,0.0069053846153846144,7.511961538461539,119.3,0.00465,3.069,81.7,206.0],[0.015195882352941177,5.950117647058824,110.5,0.006964905660377359,7.139726415094339,114.4,0.011389999999999999,2.2836326530612245,77.1,225.0],[0.00232,2.554,124.0,0.00332,1.0,127.2,0.01024734693877551,2.6517142857142857,88.6,216.0],[0.00232,8.048,114.4,0.00498,9.588,122.1,0.00398,4.271,82.3,199.0],[0.005368064516129032,5.233483870967742,114.2,0.00996,4.018,114.2,0.02258,1.408,76.4,202.0],[0.01527,3.247,109.6,0.00531,3.528,110.5,0.00432,1.251,74.4,217.0],[0.00398,3.253,112.4,0.009028,2.4099999999999997,117.0,0.007291515151515152,1.9794242424242423,85.5,218.0],[0.00332,1.7079999999999997,120.2,0.01328,3.7030000000000003,115.4,0.00498,2.753,84.6,222.0],[0.00664,5.715,113.3,0.00531,4.279,119.3,0.00266,5.205,84.9,227.0],[0.00934048780487805,5.3669512195121944,113.5,0.02191,7.993,121.2,0.00398,2.449,80.7,219.0]]}}}
{"74.0":{"1044":{"GGGACAC":[[0.00365,3.72,116.3,0.02556,3.667,114.3,0.002908235294117647,1.6357058823529411,81.1,205.0],[0.015238208955223879,3.148910447761194,117.4,0.006932727272727272,3.8274848484848487,126.8,0.01314923076923077,4.385282051282051,94.5,215.0],[0.00970021978021978,3.0451648351648353,118.3,0.00503,6.152000000000001,112.2,0.00896,2.317,78.4,230.0],[0.00299,1.9739999999999998,119.4,0.00432,6.725,113.1,0.0050673809523809525,1.4758214285714284,83.5,207.0],[0.00266,3.58,120.9,0.01262,3.41,116.0,0.006230705882352941,1.7504235294117647,83.7,201.0],[0.00232,1.381,117.2,0.010569777777777779,5.015755555555555,112.0,0.009125745614035088,2.945140350877193,84.5,219.0],[0.00266,1.775,116.8,0.01195,10.239,113.4,0.00365,4.63,79.9,204.0],[0.018188347107438017,4.900049586776859,117.2,0.01096,2.322,115.3,0.009487368421052631,3.0038646616541356,84.6,200.0],[0.00232,1.122,110.4,0.01627,3.733,114.3,0.02411072580645161,3.0966451612903225,85.2,202.0],[0.00332,4.443,118.0,0.008148571428571429,4.7103142857142855,112.5,0.00498,3.152,82.0,208.0],[0.00232,1.962,106.7,0.00664,4.526,113.7,0.021218469387755103,2.384704081632653,81.3,209.0],[0.01594,3.6910000000000003,115.2,0.01494,3.255,114.0,0.00671296875,1.9651562500000002,81.7,220.0],[0.00598,3.118,119.8,0.00266,3.126,123.2,0.00863,6.997,86.2,227.0],[0.020306434782608695,4.5404,116.1,0.00232,7.282000000000001,106.4,0.0059510989010989005,1.8393406593406594,82.2,212.0],[0.00697,1.719,114.6,0.00432,4.502,114.9,0.014009337194337192,2.0012200772200774,82.6,221.0],[0.015147076023391813,4.506269005847953,118.2,0.00548,5.69539393939394,112.8,0.004673571428571429,2.568892857142857,81.1,225.0],[0.01162,2.386,115.7,0.00498,10.784,109.4,0.009467894736842106,2.3930175438596493,82.6,217.0],[0.004780740740740741,1.676962962962963,115.8,0.00398,6.485,113.0,0.0050680000000000005,2.9907,80.2,224.0],[0.00266,3.218,118.6,0.01793,4.384,114.5,0.0044218,2.2788399999999998,87.7,210.0],[0.00232,1.767,116.8,0.00498,2.822,113.8,0.005993611111111112,3.9924722222222218,84.1,222.0],[0.005935625,1.89759375,118.7,0.0040004347826086955,4.2545217391304355,113.7,0.011881406249999999,3.88003125,80.3,211.0],[0.01992,4.054,116.2,0.00299,3.659,117.4,0.012472868852459016,1.6150245901639346,84.9,216.0],[0.00863,1.7650000000000001,116.4,0.02158,3.589,117.9,0.006569166666666668,2.1574166666666668,83.0,199.0],[0.02274462962962963,5.647333333333332,113.9,0.0083,4.044,112.3,0.0036200000000000004,3.1535,82.4,218.0],[0.011338981481481483,2.1663796296296294,116.1,0.013541232876712328,6.944506849315068,111.9,0.00564,3.462,79.3,203.0],[0.009536162790697675,2.626825581395349,118.7,0.00598,3.253,111.9,0.004044117647058824,2.9487058823529413,89.2,229.0]]}}}
{"74.0":{"1166":{"GAGACCC":[[0.00299,2.589,126.3,0.00232,6.048,116.7,0.010404507042253522,7.783478873239436,77.2,231.0],[0.01129,5.016,132.7,0.01361,2.745,135.1,0.00531,4.362,89.0,216.0],[0.00332,2.193,126.4,0.00365,6.9479999999999995,127.3,0.0033529999999999996,1.2352,82.5,218.0],[0.01262,2.857,124.4,0.007985500000000001,4.98465,128.9,0.01062,3.086,84.1,217.0],[0.00299,7.007,121.5,0.004970597014925373,2.616716417910448,125.7,0.007193333333333334,3.3366666666666664,80.4,224.0],[0.00332,2.624,121.8,0.00266,6.745,127.1,0.01162,2.978,83.9,209.0],[0.00266,1.742,127.1,0.00232,2.094,131.7,0.0073,4.461,85.6,201.0],[0.00631,7.272,128.5,0.00465,3.166,120.8,0.00498,8.283,85.0,226.0],[0.00664,3.524,135.1,0.005925777777777778,3.1647333333333334,131.9,0.00697,2.036,83.5,219.0],[0.0073,1.9520000000000002,119.4,0.02258,5.199,119.8,0.00498,1.341,73.7,204.0],[0.01228,8.613,118.5,0.010485714285714284,4.084928571428571,125.2,0.003368421052631579,1.859157894736842,80.3,221.0],[0.00332,1.211,126.2,0.00996,5.168,117.4,0.007984561403508771,1.6943333333333332,79.3,211.0],[0.01859,1.635,122.0,0.00232,1.461,123.0,0.013725161290322582,11.833548387096775,86.0,215.0],[0.00232,3.137,121.0,0.007640000000000001,3.324,117.3,0.010489770114942528,8.727637931034483,83.1,220.0],[0.00398,1.394,119.7,0.003926363636363636,2.0262727272727274,121.3,0.003846590909090909,3.470340909090909,74.5,227.0],[0.002908235294117647,3.986117647058824,120.3,0.01627,3.9550000000000005,127.6,0.004745641025641026,2.411512820512821,82.4,207.0],[0.01062,5.315,120.4,0.0032175862068965517,4.488896551724138,125.8,0.011112992125984253,6.578984251968503,85.5,229.0],[0.00232,3.001,118.1,0.00398,4.775,120.1,0.010792615384615383,4.382861538461538,79.5,230.0],[0.00863,3.462,124.4,0.00697,7.526,127.2,0.00232,1.974,81.8,200.0],[0.01361,2.67,120.9,0.00299,4.18,119.3,0.008427432432432432,1.7840405405405406,75.0,203.0],[0.01029,2.631,128.3,0.02780301675977654,4.848569832402235,126.4,0.011628961038961038,3.2625194805194804,84.0,225.0],[0.0038852173913043477,4.913173913043479,124.5,0.00943395061728395,6.912827160493826,129.1,0.00299,3.8899999999999997,85.6,232.0],[0.0061216000000000005,2.68798,126.9,0.010152222222222222,4.327388888888889,126.3,0.003368421052631579,4.32321052631579,84.7,205.0],[0.00432,5.686999999999999,121.9,0.01262,8.508,125.4,0.00531,8.257,83.7,208.0]]}}}
{"74.0":{"1223":{"TGGACCT":[[0.0069232727272727276,3.923163636363637,116.0,0.00531,10.712,118.4,0.0116984,2.4535,76.8,214.0],[0.009203127035830618,3.0434364820846906,114.4,0.00631,3.867,110.5,0.00266,2.694,75.0,212.0],[0.01195,3.5969999999999995,112.2,0.00432,3.32,115.7,0.009630000000000001,4.296,75.6,215.0],[0.004466533333333333,2.6361333333333334,120.8,0.0073,5.601,125.6,0.0038342424242424236,1.076151515151515,78.5,224.0],[0.0073,3.112,121.4,0.007365238095238096,3.461142857142857,126.1,0.0028288000000000002,3.96668,83.1,229.0],[0.0176,2.986,116.0,0.00531,2.229,119.9,0.00578103448275862,2.356310344827586,74.4,230.0],[0.009375479452054794,3.4337671232876716,117.1,0.00465,6.001,108.1,0.01029,3.248,75.8,226.0],[0.00598,2.976,112.6,0.00598,6.035,114.1,0.00498,1.77,73.2,221.0],[0.012747843137254902,6.703202614379085,117.6,0.00498,2.163,120.9,0.00465,4.097499999999999,82.4,220.0],[0.00831531914893617,3.8283085106382977,115.5,0.00266,1.996,118.0,0.00266,2.847,82.3,213.0],[0.009205454545454544,3.6455454545454544,116.2,0.00332,6.417,106.0,0.005571914893617021,7.49068085106383,83.5,227.0],[0.029534705882352935,5.502,114.2,0.00398,7.677,108.2,0.00365,3.041,74.5,232.0],[0.01295,3.9340000000000006,112.2,0.00299,5.315,112.0,0.00697,2.335,75.2,216.0],[0.007435675675675675,5.83772972972973,118.7,0.00531,13.16,119.6,0.006327368421052631,1.5450526315789475,80.9,218.0],[0.0034519999999999993,2.1164,118.6,0.010158,1.7186000000000001,126.0,0.009630000000000001,4.356,81.6,199.0],[0.01062,2.424,121.2,0.005814857142857143,6.8621428571428575,120.7,0.015487457627118647,1.4505254237288137,77.5,219.0],[0.00437875,3.0374062499999996,116.4,0.01394,4.316,118.2,0.00664,1.7,82.4,211.0],[0.00579953947368421,2.4926118421052634,114.6,0.00266,3.309,112.3,0.00332,1.811,74.8,205.0],[0.00232,1.792,110.1,0.01129,3.228,114.0,0.004491111111111111,3.9055555555555554,75.5,222.0],[0.006135511811023622,2.715543307086614,118.3,0.00465,2.223,115.1,0.01120142857142857,4.5763452380952385,82.5,210.0],[0.04107328467153284,3.02807299270073,113.4,0.01129,12.257,109.6,0.00365,16.51,84.5,204.0],[0.011082264150943396,2.4097547169811318,118.4,0.009917768595041322,6.033826446280991,119.3,0.011866506024096385,2.7683734939759033,80.2,200.0],[0.007706410256410256,2.9657692307692307,115.6,0.00697,5.173,117.1,0.01029,6.278,82.0,206.0],[0.004953103448275862,3.068034482758621,118.1,0.0073,4.79,118.3,0.007726315789473684,2.004210526315789,78.2,208.0]]}}}
{"74.0":{"1260":{"CTGACCC":[[0.00398,5.003,105.2,0.004182571428571429,7.3274,122.4,0.00398,4.476,79.4,204.0],[0.008426307692307691,5.981984615384615,109.6,0.010490399999999999,8.002026666666668,123.5,0.007447906976744187,3.2153720930232557,78.7,205.0],[0.00365,2.92,100.8,0.01096,12.509,114.8,0.00266,2.771,77.5,218.0],[0.007212127659574469,2.8537659574468086,107.8,0.008496774193548386,9.257301075268817,121.6,0.005646046511627907,1.7482558139534887,81.8,233.0],[0.00365,3.661,111.0,0.00365,9.169,121.9,0.00365,5.544,77.4,227.0],[0.0075385714285714275,3.560571428571429,109.2,0.003085185185185185,2.441851851851852,119.3,0.00232,3.346,81.5,221.0],[0.0035675,2.8440000000000003,108.2,0.0076928260869565225,8.165652173913044,118.1,0.004202857142857143,2.0691142857142855,81.1,209.0],[0.0028470833333333334,3.266833333333333,102.3,0.00531,3.409,115.4,0.00299,2.611,80.1,208.0],[0.005376363636363637,1.9654545454545451,100.5,0.00266,5.986,119.8,0.01387851851851852,1.941240740740741,82.5,216.0],[0.004866206896551724,3.609793103448276,104.9,0.009545882352941177,6.383843137254902,115.7,0.009049811320754718,3.3696415094339622,76.3,229.0],[0.01461,3.239,106.5,0.00299,2.939,125.4,0.00631,3.946,83.1,232.0],[0.009269930555555556,3.3391875,104.4,0.007294634146341464,5.5298292682926835,117.4,0.004820689655172413,1.9238275862068965,77.2,202.0],[0.00664,4.031,107.1,0.005956764705882352,12.69605882352941,115.6,0.00465,2.357,80.8,206.0],[0.007566439790575916,5.44434554973822,109.5,0.00299,5.379,120.8,0.0065215094339622645,2.5814716981132073,75.2,203.0],[0.006092203389830508,2.8447118644067797,103.4,0.017502275862068966,7.4599931034482765,120.3,0.003233157894736842,1.9469999999999998,76.7,199.0],[0.006217017543859648,3.0530526315789475,98.4,0.0083528,4.77806,117.9,0.004012916666666667,1.9350833333333333,80.7,219.0],[0.0037618604651162794,4.247139534883721,103.8,0.009714130434782609,11.343152173913042,120.1,0.0035557142857142857,2.2962857142857143,78.5,213.0],[0.00564,3.675,104.6,0.01992,11.943,118.4,0.003584210526315789,1.9886315789473683,79.9,201.0],[0.015084293785310737,3.921638418079096,102.4,0.01024734693877551,7.165510204081633,117.7,0.007640000000000001,5.6,77.5,226.0],[0.005398125,2.753625,104.6,0.01062,7.09,119.1,0.009098666666666668,3.148866666666667,81.7,217.0],[0.007621203007518796,4.11190977443609,106.9,0.00564,10.431,116.7,0.0068090243902439035,3.5794878048780485,77.7,220.0],[0.03054,3.259,102.6,0.01062,7.072,122.6,0.00432,2.1355,81.6,210.0],[0.006052765957446808,2.970851063829787,105.8,0.016658333333333334,12.567249999999998,117.0,0.00465,2.468,74.5,207.0],[0.0048662857142857145,7.085800000000001,105.4,0.009940267857142858,6.528428571428572,119.7,0.00465,5.181,76.7,222.0],[0.006087222222222222,2.9583888888888885,104.0,0.02452381322957199,6.3084591439688715,119.8,0.008232,4.2526,79.0,231.0],[0.00863,2.9690000000000003,95.5,0.006670877192982457,4.2236666666666665,119.5,0.00531,2.41,83.2,215.0],[0.00794679245283019,4.904339622641509,105.7,0.00631,11.043,121.5,0.005579032258064516,2.9528064516129033,81.5,211.0],[0.0097655,3.4198875,101.2,0.01166361111111111,7.5915486111111115,124.2,0.0073,2.274,80.4,224.0],[0.01644174757281553,3.981058252427185,105.5,0.006508648648648649,6.51245945945946,120.3,0.0068813207547169805,2.4847547169811324,81.0,200.0],[0.011239170506912444,2.7293870967741936,106.2,0.01023380281690141,10.7683661971831,116.0,0.01129,2.394,76.6,212.0]]}}}
{"74.0":{"1405":{"GTGACTT":[[0.0091325,5.62475,94.2,0.005502857142857143,9.91,122.4,0.0116575,3.8600624999999997,86.9,213.0],[0.012833896103896104,7.596753246753246,95.1,0.00332,6.387,124.8,0.0073,3.656,91.0,206.0],[0.009518208955223881,3.398701492537313,102.3,0.00631,8.822,120.8,0.0073654545454545466,2.490818181818182,86.4,208.0],[0.00664,11.331,103.9,0.00332,12.536,111.4,0.00365,1.43,86.0,234.0],[0.00266,2.518,98.6,0.004764324324324324,3.1515135135135135,118.0,0.00398,2.776,84.3,222.0],[0.003822173913043478,3.1520434782608695,105.9,0.00398,5.619,127.3,0.00598,3.274,88.2,207.0],[0.00266,4.228,103.9,0.0093,3.19,120.6,0.003368421052631579,2.757105263157895,85.7,201.0],[0.00900379746835443,4.423759493670886,95.2,0.00631,3.3759999999999994,116.7,0.00498,3.851,86.0,202.0],[0.0073,3.3479999999999994,94.9,0.00564,5.704,117.3,0.02424,2.172,82.6,215.0],[0.00531,5.414,89.0,0.00398,11.713,114.2,0.019260000000000003,9.399,98.6,200.0],[0.0064313750000000005,8.4038875,100.9,0.02125,6.313,119.1,0.003879375,2.21625,86.7,224.0],[0.003635609756097561,3.16909756097561,102.5,0.00697,8.739,113.9,0.02025,1.646,82.6,211.0],[0.0073,2.93,103.7,0.005283870967741936,6.915064516129033,124.6,0.00365,2.205,89.6,233.0],[0.01228,3.149,106.6,0.00368,4.608181818181818,116.7,0.00299,0.82,82.7,230.0],[0.006879166666666666,4.481083333333333,95.1,0.00631,7.6000000000000005,124.2,0.012918695652173913,1.887943143812709,85.6,225.0],[0.00232,3.056,102.2,0.012919611650485437,6.928941747572816,120.1,0.00863,3.016,82.8,205.0],[0.0073,5.9,93.5,0.00398,5.937,117.7,0.00398,6.986999999999999,86.9,229.0],[0.0083132,4.46956,98.2,0.00432,7.528,117.3,0.00996,2.029,85.3,209.0],[0.00299,4.156,101.1,0.009630000000000001,5.613999999999999,118.2,0.00232,4.251,92.8,226.0],[0.00332,2.446,104.0,0.00266,5.214,125.0,0.004012916666666667,2.1685000000000003,89.1,231.0],[0.00398,3.153,103.0,0.008122972972972974,5.3899459459459464,117.1,0.00564,2.693,81.9,204.0],[0.002834705882352941,2.806058823529412,106.5,0.0093,5.525,117.4,0.00432,4.218,88.2,227.0],[0.00465,2.7020000000000004,99.2,0.008550952380952381,4.710380952380953,117.6,0.009630000000000001,1.321,82.8,210.0],[0.00432,5.171,103.0,0.00398,9.789,116.1,0.007640000000000001,1.324,85.5,217.0],[0.00266,3.317,100.4,0.00564,4.589,118.7,0.01096,3.364,83.7,199.0],[0.006451739130434783,2.272521739130435,95.7,0.00365,3.42,116.0,0.01162,3.572,81.6,216.0],[0.00365,3.576,104.5,0.0083,10.421,116.9,0.00631,1.708,85.8,232.0],[0.00564,3.35,97.5,0.00232,3.146,118.5,0.00398,4.936,86.1,218.0]]}}}
{"74.0":{"1422":{"GTAACTC":[[0.00631,5.364,92.9,0.00795985294117647,2.640955882352941,98.7,0.01594,2.471,93.2,218.0],[0.00332,1.811,88.3,0.00299,2.142,99.5,0.01062,4.172,91.8,227.0],[0.00498,1.302,92.5,0.006349117647058824,1.9592941176470589,98.7,0.00531,2.094,91.2,222.0],[0.004371111111111111,1.932361111111111,88.1,0.00365,2.45,98.7,0.0031636842105263155,1.5423157894736843,96.2,210.0],[0.00398,2.188,90.3,0.006515294117647059,2.7871960784313723,100.5,0.0035286842105263154,2.0020526315789473,88.2,233.0],[0.005635952380952381,3.0738095238095235,88.9,0.005001999999999999,10.728466666666666,104.2,0.004868854166666666,1.5145208333333333,90.7,225.0],[0.01129,10.663,96.8,0.00232,1.282,100.0,0.006449636363636363,1.8293636363636363,92.6,199.0],[0.00564,1.305,90.9,0.00664,1.971,94.1,0.00361078125,1.854609375,94.3,217.0],[0.0050680000000000005,3.116833333333333,87.2,0.013427199999999999,2.1305199999999997,96.3,0.007798817733990149,1.5067487684729064,93.1,220.0],[0.00365,5.031,93.7,0.00747125,1.57875,97.9,0.00266,2.462,92.2,207.0],[0.008836976744186046,1.9614883720930232,89.6,0.016541869158878505,2.228252336448598,98.0,0.006322307692307692,1.9688653846153845,91.6,200.0],[0.00266,2.195,91.4,0.00465,1.6040000000000003,95.8,0.005726708860759494,1.8799113924050634,94.5,204.0],[0.0052357692307692305,6.313615384615384,90.3,0.00429536,4.3855200000000005,102.2,0.003972424242424242,2.571,93.8,231.0],[0.00332,1.846,90.7,0.00503,2.7994285714285714,97.1,0.003351724137931034,1.9607586206896552,94.8,211.0],[0.0083528,1.40858,91.6,0.009630000000000001,2.837,100.9,0.0034519999999999993,1.0932,95.1,205.0],[0.00498,1.372,90.0,0.008313625,2.8307125,100.2,0.004533783783783784,2.0643783783783785,89.9,224.0],[0.00232,3.2949999999999995,89.4,0.00531,7.026,100.6,0.00531,6.662,92.6,230.0],[0.01062,5.694,91.2,0.00531,2.867,92.4,0.00465,2.2919999999999994,91.3,226.0],[0.007640000000000001,2.168,84.0,0.00332,1.966,96.9,0.0332,1.89,93.2,215.0],[0.009602083333333332,1.8145833333333334,86.5,0.014241749999999997,5.974525,95.2,0.00299,7.29,89.7,209.0],[0.009630000000000001,3.345,84.6,0.00232,2.66,100.2,0.004845641025641025,1.7524358974358973,92.0,221.0],[0.0025013333333333333,0.9146000000000001,85.1,0.0073,1.55,98.4,0.01295,2.454,88.0,216.0],[0.00232,1.233,94.2,0.00232,1.986,96.6,0.009925714285714286,2.455673469387755,91.2,213.0],[0.0029138461538461536,1.5304615384615385,91.9,0.002602258064516129,2.6393870967741937,98.4,0.005437111111111111,2.108888888888889,93.9,206.0],[0.004953103448275862,2.1856206896551726,90.8,0.0037871428571428574,1.834489795918367,98.5,0.00432,2.204,95.1,234.0],[0.005655614035087719,1.507157894736842,88.7,0.0049833333333333335,2.3770000000000002,97.3,0.01262,1.958,92.1,202.0],[0.005564642857142857,1.5796428571428571,90.4,0.00465,1.981,99.0,0.00586075,2.2531749999999997,91.9,232.0],[0.005165833333333333,1.9893194444444444,87.6,0.00368,4.464090909090909,105.4,0.009640392156862744,9.833372549019607,96.4,208.0],[0.00332,3.253,90.6,0.0078104444444444445,2.7556222222222218,99.0,0.00299,2.87,96.2,201.0],[0.00697,3.8300000000000005,82.2,0.004133636363636364,4.76415909090909,102.7,0.00266,6.089,99.7,214.0]]}}}
{"74.0":{"1527":{"AAGACTT":[[0.00465,1.731,124.0,0.007640000000000001,4.353,127.8,0.007640000000000001,5.302,89.2,217.0],[0.00365,2.808,123.2,0.00863,3.325,129.1,0.003368421052631579,2.617684210526316,87.8,218.0],[0.003368421052631579,2.4801578947368426,122.3,0.00398,5.283,126.7,0.00531,6.432,87.0,227.0],[0.00579258064516129,2.794838709677419,123.6,0.00531,2.299,127.0,0.003687619047619048,5.789809523809524,89.7,200.0],[0.009630000000000001,3.1870000000000003,128.8,0.00498,2.834,133.8,0.01361,6.194,88.2,226.0],[0.009047536231884057,2.120231884057971,120.2,0.0093,2.9869999999999997,130.1,0.003368421052631579,1.4463157894736844,89.1,216.0],[0.004012916666666667,2.5530416666666667,122.9,0.007926491228070176,3.4179298245614036,125.3,0.0083,2.3546666666666667,89.0,199.0],[0.008107142857142856,2.684,123.9,0.00398,6.384,125.3,0.007640000000000001,1.9439999999999997,85.0,234.0],[0.00432,2.577,125.0,0.004671666666666667,3.8044583333333333,124.5,0.00465,3.479,87.6,202.0],[0.01627,3.1110000000000007,115.2,0.00365,3.424,116.5,0.00503,6.120785714285715,88.1,215.0],[0.0038733333333333332,2.2636666666666665,124.0,0.004722692307692308,1.6718846153846154,127.9,0.00432,6.62,85.3,201.0],[0.00564,2.054,124.0,0.009463333333333334,4.226303921568627,125.7,0.00697,2.079,87.0,213.0],[0.00996,2.766,124.3,0.004820689655172413,3.392965517241379,127.3,0.00368,1.241818181818182,87.5,207.0],[0.0083,3.295,117.4,0.013433896103896104,2.45087012987013,128.2,0.00465,1.156,89.5,230.0],[0.00631,4.089,123.0,0.0030266666666666667,4.319111111111111,128.4,0.00564,2.117,85.9,231.0],[0.0028721951219512197,2.9018048780487806,123.9,0.011616666666666668,3.849666666666667,127.3,0.00531,6.464,92.7,222.0],[0.00365,4.903,118.7,0.008402105263157895,1.4890877192982457,128.0,0.00498,4.032,86.5,225.0],[0.00432,2.629,123.9,0.00398,3.3669999999999995,127.1,0.00332,1.056,88.0,232.0],[0.00432,1.596,126.3,0.00797,3.975,124.4,0.00266,1.733,87.5,211.0],[0.0033185714285714285,2.112821428571429,123.6,0.00365,1.672,127.3,0.0182825,1.4604673913043478,87.7,205.0],[0.010302291666666666,5.8179375,124.4,0.00365,1.558,128.2,0.00631,2.339,88.4,221.0]]}}}
Could you please help me with these two issues? Thank you for your time, and I look forward to hearing from you.
hi @XichenZhao0223, at a glance, this seems to me that the error is caused by a mismatch of datatype between transcript_id in data.info and in data.json. I am suspecting that your transcript_id is not stored as string in data.info but is stored as string in data.json. An easy fix to this issue is to convert the transcript_id column in data.info manually to string. Alternatively, can you please send one of the data.info and data.json pair files for me to verify this? Thanks!
Dear developer,
Thank you for your patient reply. I have tried to convert the trans_id in data.info into characters in R language, but unfortunately, the error still exists. Below is the Dropbox link for the two files: https://www.dropbox.com/s/dpx6089nk3pu74c/Xichen0223.zip?dl=0 Although these are not the exact replicate data files mentioned above, it shows the same error in the inference step.
HI, @XichenZhao0223 @chrishendra93
I think I am having similar error. Is the problem solved?
Many thanks!
Andrea
Dear developer,
Thank you for your patient reply. I have tried to convert the trans_id in data.info into characters in R language, but unfortunately, the error still exists. Below is the Dropbox link for the two files: https://www.dropbox.com/s/dpx6089nk3pu74c/Xichen0223.zip?dl=0 Although these are not the exact replicate data files mentioned above, it shows the same error in the inference step.
HI, @XichenZhao0223 @chrishendra93
I think I am having similar error. Is the problem solved?
Many thanks!
Andrea
Dear developer, Thank you for your patient reply. I have tried to convert the trans_id in data.info into characters in R language, but unfortunately, the error still exists. Below is the Dropbox link for the two files: https://www.dropbox.com/s/dpx6089nk3pu74c/Xichen0223.zip?dl=0 Although these are not the exact replicate data files mentioned above, it shows the same error in the inference step.
Dear Andrea, Unfortunately, the issue has not been solved. May I ask about which version of the transcript reference file did you use in read alignment and nanopolish event alignment? I encountered this error when using UCSC transcript file (hg19_UCSC_knownGene.fasta). And the error message seemed to be the transcript id of UCSC transcripts. So I switched to the Ensemble transcript file (Homo_sapiens.GRCh38.cdna.all.fa) and the problem had been solved. Hope this information can help you with your problem.
Regards, Xichen
hi, @XichenZhao0223
thanks for quick reply. My reference is from gencode. I will switch to ESEMBEL and let you know the result.
your info is very appreciated!
Andrea
HI, @XichenZhao0223 @chrishendra93 I think I am having similar error. Is the problem solved? Many thanks! Andrea
Dear developer, Thank you for your patient reply. I have tried to convert the trans_id in data.info into characters in R language, but unfortunately, the error still exists. Below is the Dropbox link for the two files: https://www.dropbox.com/s/dpx6089nk3pu74c/Xichen0223.zip?dl=0 Although these are not the exact replicate data files mentioned above, it shows the same error in the inference step.
Dear Andrea, Unfortunately, the issue has not been solved. May I ask about which version of the transcript reference file did you use in read alignment and nanopolish event alignment? I encountered this error when using UCSC transcript file (hg19_UCSC_knownGene.fasta). And the error message seemed to be the transcript id of UCSC transcripts. So I switched to the Ensemble transcript file (Homo_sapiens.GRCh38.cdna.all.fa) and the problem had been solved. Hope this information can help you with your problem.
Regards, Xichen
Hi, @XichenZhao0223,
I got it done with ENSEMBL reference!
Thank you again for your suggestion and experience!!!!!!!
Andrea
HI, @XichenZhao0223 @chrishendra93 I think I am having similar error. Is the problem solved? Many thanks! Andrea
Dear developer, Thank you for your patient reply. I have tried to convert the trans_id in data.info into characters in R language, but unfortunately, the error still exists. Below is the Dropbox link for the two files: https://www.dropbox.com/s/dpx6089nk3pu74c/Xichen0223.zip?dl=0 Although these are not the exact replicate data files mentioned above, it shows the same error in the inference step.
Dear Andrea, Unfortunately, the issue has not been solved. May I ask about which version of the transcript reference file did you use in read alignment and nanopolish event alignment? I encountered this error when using UCSC transcript file (hg19_UCSC_knownGene.fasta). And the error message seemed to be the transcript id of UCSC transcripts. So I switched to the Ensemble transcript file (Homo_sapiens.GRCh38.cdna.all.fa) and the problem had been solved. Hope this information can help you with your problem.
Regards, Xichen
Hi, @XichenZhao0223,
I got it done with ENSEMBL reference!
Thank you again for your suggestion and experience!!!!!!!
Andrea
HI, @XichenZhao0223 @chrishendra93 I think I am having similar error. Is the problem solved? Many thanks! Andrea
Dear developer, Thank you for your patient reply. I have tried to convert the trans_id in data.info into characters in R language, but unfortunately, the error still exists. Below is the Dropbox link for the two files: https://www.dropbox.com/s/dpx6089nk3pu74c/Xichen0223.zip?dl=0 Although these are not the exact replicate data files mentioned above, it shows the same error in the inference step.
Dear Andrea, Unfortunately, the issue has not been solved. May I ask about which version of the transcript reference file did you use in read alignment and nanopolish event alignment? I encountered this error when using UCSC transcript file (hg19_UCSC_knownGene.fasta). And the error message seemed to be the transcript id of UCSC transcripts. So I switched to the Ensemble transcript file (Homo_sapiens.GRCh38.cdna.all.fa) and the problem had been solved. Hope this information can help you with your problem. Regards, Xichen
Hi Andrea,
You're welcome, and congratulations !! 😃
Regards, Xichen