<div dir="ltr">Caríssimos(as) utilizadores(as) do R,<div><br></div><div>Estou em outro nível de problema.</div><div>Quero converter FPKM em log2CPM. Para tanto, fiz o seguinte: <br clear="all"><div><br></div><div>dados<-read.csv("/home/Genes interesse NePCa.csv")<br>head(dados)<br>class(dados)</div><div><br><b>[1] "data.frame"</b></div><div><br>geneLength <- rowMeans(dados)<br></div><div><b>Error in rowMeans(dados) : 'x' must be numeric</b></div><div><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre><br></div><div><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre></div><div><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre>dadoslog2cpm <- convertCounts(dados,<br>                        unit = "cpm",<br>                        log = TRUE,<br>                        normalize = "tmm")<br></div><div><b>Error: countsMatrix must be a numeric matrix or dataframe of N genes x M Samples. All columns must be numeric.</b><br></div><div><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre><pre tabindex="0" aria-label="Console Output" role="document" class="gmail-GND-IWGDH3B" id="gmail-rstudio_console_output" style="font-family:"Ubuntu Mono",monospace;font-size:18.6667px;outline:none;border:none;word-break:break-all;margin-top:0px;margin-bottom:0px;line-height:1.25;color:rgb(255,255,255);background-color:rgb(15,15,15);white-space:pre-wrap"><span tabindex="-1" class="gmail-GND-IWGDI3B" role="document" style="outline:none"><span class="gmail-GND-IWGDN2B gmail-ace_keyword" style="color:rgb(255,102,0)"></span></span></pre><br></div><div>Não entendo o que possa estar errado. A tabela de dados está em anexo. Vocês podem me ajudar, por favor?</div><div><br></div><div>Obrigada,</div><div><br></div><div>Michele</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">------------------------------------------------------------------------<br><div><i><b>Dra. Michele Claire Breton</b></i></div><div>Researcher in Bioinformatics<br></div><div><div>PhD in Cellular and Molecular Biology</div><div>CICS - Health Sciences Research Center</div><div>Faculty of Health Sciences</div><div>University of Beira Interior</div><div>Covilhã - Castelo Branco - Portugal</div></div></div></div></div></div>