factorial for bigger number in R
Hi if factorial(1536) is used in R, output is inf or nan How to find 1536! in R?
r
• 3,814 views
•
link
written
by
vimlakany •
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
iMAT (integrative metabolic análisis tool) - MATLAB
written by debocolman •Hi Everyone! I'm a MatLab begginner and I'd like run the iMAT plugin to reach a comparative proteomic analysis. My input is an Excel file …
-
Problem with homer in findMotifs.pl when using input and bg fasta
written by Ilario •I am using the following command: findMotifs.pl input.fa fasta ./Output -fastaBg bg.fa -len 8,10,12 -norevopp The input and bg fasta have this structure and the …
-
HOMER: ./findMotifsGenome.pl
written by radicav06 •Hello all! I want find motifs FOXA1 in the complete human genome. I have a file with peaks 10_FOXA1.bed. Format file: chr1 629136 629408 peak1 …
-
Can't get known motif enrichment result using findMotifs.pl (Homer)
written by youllae •Hi. I'm currently using HOMER to see known motif enrichment of the list of DEGs I have. Although I followed all the instruction provided in …
-
problem with HOMER findMotifsGenome.pl
written by ste.luHi All, I did and ATAC-Seq experiment in different cell lines and I was curious to see if they have different motifs in the open …
-
How to handle the 'Inf' and '-Inf' in cufflinks output when use clusterprofiler gseGO
written by yaotianran •Hi, I often use cufflinks and R/clusterProfiler to analyze RNA-seq data. In the cuffdiff output file gene_exp.diff, sometime lots of genes ( both significant yes …
-
findGenomeMotif.pl in Homer couldn't work properly
written by xuenjun1 •./Homer/bin/findMotifsGenome.pl myc1_vs_input1.txt tair10 motif_based_on_myc1_vs_input1_cleaned_peaks/ -size 200 -mask Position file = myc1_vs_input1.txt Genome = tair10 Output Directory = motif_based_on_myc1_vs_input1_cleaned_peaks/ Fragment size set to 200 Will use …
-
Number of reads mapped to genome
written by vimlakany •Hi, while calculating RPKM, how to get the number of reads mapped to genome. The total read counts is 11851490 I have tried samtools flagstat …
-
Strand Specificity and Identification of Antisense RNA
written by vimlakany •HI I have a set of SRA data (Paired end), for which is it possible to find strand specificity using tools or softwares? And how …
-
Cuffdiff - Transcripts Have Experssion Values Of Zero, "Nan" Or "Inf"
written by lhusselmann •<p>I'm experiencing the following problem using the pre-compiled binary packages of Tophat-2.0.9 and Cufflinks-2.1.1 where Cuffdiff was reporting many genes and transcripts as having expression …
This is a questions for CrossValidated, however as your question intrigued me, I had a look. If you run the code you suggest:
Any factorial >170 is too large a number, and it won't be computed.
Perl to the rescue:
factorial(1536)would be more than a google, so you couldn't even represent it in a 64 bit floating point number (or even close).There are similar questions asked on the R mailing list and other forums. Try googling "r large factorial" or "r factorial inf". (If you can work in log space you can use
lfactorial(x)instead)Hello vimlakany!
We believe that this post does not fit the main topic of this site.
Not a bioinformatics question.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
There were many questions related to python and R in Biostars? Thats the reason I posted the above question here.
Hi vimlakany, Biostars is a bioinformatics QA and certainly in bioinformatics we use R and python a lot. That is why you find a lot questions on this topic. However, we require that each question is specifically related to bioinformatics or computational biology, and that this relation has to be apparent and detailed in the question itself. Your question looks like a question on numeric analysis or computation.
Btw: you can use
lfactorialto use lgamma instead of gamma and get the natural logarithm: