Closed dputhier closed 5 years ago
I think this is because these peak_anno commands used the old (completely different except from the name) peak_anno. I can tell because it has the '-D' command line option, and I have no idea what it is.
-D is a command wise argument to delete dates in output file names (see gtftk peak_anno -h). This argument works with the current version. These examples should work.
Changing the png output to pdf.
Then what does "WARNING: Unexpected return code 1" mean ? When I try to run the first example manually in a terminal, gtftk says it cannot find the file :
gtftk get_example -d mini_real | gtftk peak_anno -m gene_biotype -p ENCFF112BHN_H3K4me3_K562_sub.bed -c hg38.genome -D
-n -if example_pa_02.png
|-- 15:57-ERROR : Unable to load file: ENCFF112BHN_H3K4me3_K562_sub.bed.
gtftk get_example -d mini_real -f '*'
Just try to make them pass without taking care of sphinx embedding.
What ? gtftk get_example -d mini_real -f '*' did not work either.
@qferre I mean the first objective is to make it work inside or outside Sphinx doc.
@dputhier sorry part of your reply was masked. Can understand why get_example is not working. What is the output ?
Okay, here is the error :
|-- 11:20-ERROR-peak_anno : Less than 2 remaining regions in one of the BED files. This is likely due to them being all in regions marked in the excl
usion file.
I know the cause : the program exits if at any point there are less than 2 regions in a BED file. I will change it so that it returns "-1" in the result file.
Partially fixed. There is just a problem now on the fitting of a negative binomial for such regions. Working on it.
There was a small, stupid error : when trying to fit a negative binomial, if the range was too small (<2) it would make an empty count table at some point (I'll spare you the details). Should have been fixed now, can you try again ?
@dputhier : Bump. Forgot to tag you in my previous answer. Can you try again when you've got some time ? Thanks.
I have fixed the help files (annotation.rst). The outputs of peak_anno which are in pdf format are enclosed in html frames and can be downloaded, if required, by the user. The only problem is that the computation is rather time consuming. It may lead to some problem when we will compile the help files on readthedocs (there is a walltime). Maybe we will need to ask for additional computation time on readthedoc server... Fixed in 17a3675cd3706ede58c427fae66d8b1d7859ce80
When you say "time consuming", how much do you mean ? Minutes ? Hours ? Worst case, maybe we can replace the "mini_real" files with "simple" ones ?