You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was running PureCN on results generated by the GATK4 Somatic CNV workflow upstream, and I notice that it takes hours for readAllelicCountsFile() to parse an allelic counts tsv file. Admittedly my tsv file is fairly large (~2.4M lines), but this is still way too time-consuming.
It turns out that most of the time is spent on a single line of code (readAllelicCountsFile.R, line 79):
As far as I understand it, lapply() is basically equivalent to the native R for loop and it is not very efficient. So I replace it with the following line:
And it drastically reduces the running time of this function to a few minutes. Therefore, I recommend the developers to incorporate this fix so that future users won't have to solve the same problem when they are running PureCN on GATK4 outputs. Thank you very much for maintaining this amazing project!
The text was updated successfully, but these errors were encountered:
I was running PureCN on results generated by the GATK4 Somatic CNV workflow upstream, and I notice that it takes hours for readAllelicCountsFile() to parse an allelic counts tsv file. Admittedly my tsv file is fairly large (~2.4M lines), but this is still way too time-consuming.
It turns out that most of the time is spent on a single line of code (readAllelicCountsFile.R, line 79):
As far as I understand it, lapply() is basically equivalent to the native R for loop and it is not very efficient. So I replace it with the following line:
And it drastically reduces the running time of this function to a few minutes. Therefore, I recommend the developers to incorporate this fix so that future users won't have to solve the same problem when they are running PureCN on GATK4 outputs. Thank you very much for maintaining this amazing project!
The text was updated successfully, but these errors were encountered: