Question: kissplice SNP output and kissDE runtime
gravatar for erica
2.9 years ago by
erica10 wrote:

Hi All, I'm working through the kissplice TWAS pipeline to identify condition-specific SNPs among 3 phenotypes in a wild fish species. Its quite a large dataset, with 4 or 5 replicates per phenotype and 10M paired reads per replicate. Using default parameters and the --experimental algorithm (commands below), kissplice finds over 1 million Type0a SNPs. Increasing the relative filtering cutoff to 10% (-C 0.1) still finds over 700,000 SNPs. This seems huge given that the phenotypes represent alternative outcomes of phenotypic plasticity, so do not result from fixed genetic differences. Also, when I use the results files in kissDE (v1.5.0), the kissplice2counts function runs for hours (so far overnight and still going). I can run the example file with this command in a second. While my result files contain a huge number of SNPs, this function should simply be creating a data frame for further analysis? What is the expected runtime for this?

I am interested in SNPs that are fixed or close to fixed among my conditions (e.g. that there may be underlying genetic predisposition to transition among the 3 phenotypes). I had planned to filter the data frame (e.g. remove SNPS with <10 reads mapped in at least one sample) in R, but am concerned the files are too large for the kissplice2counts function.

I'm surprised at the number of SNPs. We have a rough draft genome and estimate genome-wide heterozygosity at ~1.15%, so neither low or excessive. I'm running kissplice again with a higher kmer value of 50, to hopefully reduce the number of SNPs further.

Any advice on an expected kissDE runtime or ways to refine the number of SNPs returned given my dataset, would be very much appreciated. Thanks in advance.

kissDE command: snpCounts <- kissplice2counts("results_0.1_type0a.fa", pairedEnd=TRUE) Running in R version 3.4.4., on a Macbook Pro 3.1 GHz Processor, 16 GB memory.

Kissplice commands: kissplice -t 6 -s 1 -k 41 --experimental -r filenames.... kissplice -t 6 -s 1 -k 41 --experimental -C 0.1 -r filenames....

kissplice snp rna-seq kissde R • 1.0k views
ADD COMMENTlink modified 2.9 years ago by clara.benoitp10 • written 2.9 years ago by erica10
gravatar for leandro.ishi.lima
2.9 years ago by
leandro.ishi.lima90 wrote:

Dear Erica,

We are investigating the kissDE performance to answer you. What I might help you right now is on removing SNPS with <10 reads mapped in at least one sample, just after running KisSplice.

You could process the fields


in the header of the SNPs and remove the SNPs such that there exists one CX_Y, with Y < 10, in either the upper or the lower path.

Since such post-process would be done in a script after running KisSplice, and before running kissDE, it will run fast and could potentially filter out many bubbles.

Please tell us if you need help on this script, and if it suits your needs.

Kind regards.

ADD COMMENTlink written 2.9 years ago by leandro.ishi.lima90

Thanks for the quick response, and the helpful suggestion. Some help with the script would be fantastic - as I have 3 conditions, I would be concerned that removing all SNPs with <10 counts in at least one individual might remove instances of differential expression between two conditions? Best regards, Erica.

ADD REPLYlink written 2.9 years ago by erica10

Dear Erica,

Did the Bioconductor version of kissDE work for you?

Here you can find a very simple script to filter out some lowly-expressed bubbles:

You call it as:

python <file> <count_threshold> <min_nb_files>


<file> is the bubbles file,
<count_threshold> is an integer specifying what would be low expression (e.g. 10),
<min_nb_files> is the number of conditions CX_Y, with Y < <count_threshold>, needed to filter out the bubble.
The output will be written to <file>._filtered_<count_threshold>_<minNbFile>.fa

This script is far from ideal (i.e. it does not take into account biological replicates and conditions), but it can filter out many of uninteresting bubbles, with fairly low counts.

For example, to filter out all bubbles where the upper or the lower path contains more than 4 read files with less than 10 reads mapping to it, we would use:

python <file> 10 4

If it does not help you, maybe we should take into conditions and biological replicates.

ADD REPLYlink modified 2.9 years ago • written 2.9 years ago by leandro.ishi.lima90
gravatar for clara.benoitp
2.9 years ago by
clara.benoitp10 wrote:

Dear Erica,

Firt of all, a new version of kissDE is now available on Bioconductor (development version):

You can install it by installing the devel version of Bioconductor or directly installing the source package. Be aware, that we had to modify the version numbering to submit to Bioconductor. So the current version 0.99.3 is actually a newer version than the one you are using.

In this new release, we improved the running time of the kissplice2counts function. We are still working on improving the global processing time of the package. You can find in the package vignette some running time estimation on smaller datasets. In this vignette, you will see that the limiting step is the differential analysis.

Even with this new version of kissDE, because of the very high number of SNP in your dataset, the loading of the data will still be quite long and the running time of the differential analysis could be problematic. So I definitely recommend to filter your data before kissDE as suggested by Leandro.



ADD COMMENTlink written 2.9 years ago by clara.benoitp10

Thank you Clara. I will try and install the new Bioconductor version of kissDE, and filter the kissplice output to drop the number of SNPs to a more manageable size. Will let you know how things run.

Best regards, Erica.

ADD REPLYlink written 2.9 years ago by erica10
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1367 users visited in the last hour