Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8890077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:25:03+00:00 2026-06-14T22:25:03+00:00

I have the following gene information in a csv format table: 1 1 1

  • 0

I have the following gene information in a csv format table:

                    1       1       1       2     2         2
1415670_at  1   365.1   293.4   288.9   394.5   312     381.6
1415671_at  2   556.1   584.2   567.8   592.8   471.6   513.1
1415672_at  3   1048.3  763.1   1074.9  852.3   826.1   898.3
1415673_at  4   60.8    51.7    51.6    224     248.4   150.7
1415674_at  5   129.1   107.2   230.4   175.5   250.5   172.4

I have been running SAM for Excel, available in http://www-stat.stanford.edu/~tibs/SAM/
and the results are the following:

Positive genes (3)                              
Row Gene ID Gene Name   Score(d)    Numerator(r)    Denominator(s+s0)   Fold Change q-value(%)
5   1415673_at  4   2.539689902 153 60.24357537 1.14E+46    0
2   1415670_at  1   0.707325294 46.9    66.30612588 1.31313E+14 0
6   1415674_a_at    5   0.574118361 43.9    76.46506883 1.64141E+13 0

The parameters that I am using are in the following picture:

enter image description here

when I use samR for R with the following program:

 filename<-"test.csv"
 y <- c(1,1,1,2,2,2)        
 m <- read.csv(filename,sep=",",row.names=1)
 t <- as.matrix(m)
 samfit <- SAM(t, y, resp.type="Two class unpaired",
          nperms=100, testStatistic=c("standard"),
          knn.neighbor=10, random.seed=1234567, logged2=TRUE)
 print(samfit)
 rownames(m)[ as.numeric( samfit$siggenes.table$genes.up[ , "Gene Name"]) ]
 rownames(m)[ as.numeric( samfit$siggenes.table$genes.lo[ , "Gene Name"]) ]

The results are way more different:

Call:
SAM(x = t, y = y, resp.type = "Two class unpaired", nperms = 100, 
    testStatistic = c("standard"), knn.neighbors = 10, random.seed = 1234567, 
    logged2 = TRUE)

Genes up
     Gene ID Gene Name Score(d) Numerator(r) Denominator(s+s0)
[1,] g5      5         1.173    115.375      98.348           
[2,] g4      4         0.877    107.867      122.948          
     Fold Change          q-value(%)
[1,] 5.38686075651057e+34 0         
[2,] 2.95870863324773e+32 0         

Genes down
NULL
     rownames(m)[ as.numeric( samfit$siggenes.table$genes.up[ , "Gene Name"])]

     [1] "1415674_a_at" "1415673_at"  
     rownames(m)[ as.numeric( samfit$siggenes.table$genes.lo[ , "Gene Name"])]

     character(0)

and this goes worse with huge datasets, does somebody knows why?

The unformatted data is:

,,1,1,1,2,2,2
1415670_at,1,365.1,293.4,288.9,394.5,312,381.6
1415671_at,2,556.1,584.2,567.8,592.8,471.6,513.1
1415672_at,3,1048.3,763.1,1074.9,852.3,826.1,898.3
1415673_at,4,60.8,51.7,51.6,224,248.4,150.7
1415674_a_at,5,129.1,107.2,230.4,175.5,250.5,172.4

I have tried also with the unlogged data and the results from the SAM and samR continue being different.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:25:05+00:00Added an answer on June 14, 2026 at 10:25 pm

    I loaded the library (I guess? case matters and you said samR)

    library(samr)
    

    and your sample input data

    txt <- textConnection(",,1,1,1,2,2,2
    1415670_at,1,365.1,293.4,288.9,394.5,312,381.6
    1415671_at,2,556.1,584.2,567.8,592.8,471.6,513.1
    1415672_at,3,1048.3,763.1,1074.9,852.3,826.1,898.3
    1415673_at,4,60.8,51.7,51.6,224,248.4,150.7
    1415674_a_at,5,129.1,107.2,230.4,175.5,250.5,172.4")
    
    m <- read.csv(txt, row.names=1)
    

    I have

    > head(as.matrix(m))
                 X.1     X1  X1.1   X1.2    X2  X2.1  X2.2
    1415670_at     1  365.1 293.4  288.9 394.5 312.0 381.6
    1415671_at     2  556.1 584.2  567.8 592.8 471.6 513.1
    1415672_at     3 1048.3 763.1 1074.9 852.3 826.1 898.3
    1415673_at     4   60.8  51.7   51.6 224.0 248.4 150.7
    1415674_a_at   5  129.1 107.2  230.4 175.5 250.5 172.4
    

    The first column of m is not desired, so I drop it before casting to matrix — is this your error?

    t <- as.matrix(m[,-1])
    

    and then fit

    y <- rep(1:2, each=3)
    samfit <- SAM(t, y, resp.type="Two class unpaired",
                  nperms=100, testStatistic=c("standard"),
                  knn.neighbor=10, random.seed=1234567, logged2=TRUE,
                  genenames=rownames(t))
    

    The results are different from the results when the first column of m is not dropped.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following table in csv format in Excel: 1 1 1 2
I have a large tab-delimited csv file with the following format: #mirbase_acc mirna_name gene_id
I have following CSS: table tbody tr:last-child td { padding-top: 7px; border-bottom: 0; }
I have following table (SQL Server) Table name is LandParcels Blockid ParcelNo Stateorprivate ========================
I have following table CREATE TABLE User ( email sysname NOT NULL, sign varbinary(256)
I have following method that I select all the ids from table and append
I have following mapping definitions: <class name=Role table=Role optimistic-lock=version > <id name=Id type=Int32 unsaved-value=0
i have following View where user has a table of products and i need
I have following table in view: # views/students/index.html.haml %table.table %thead %tr %th=t :first_name #
I have following plist: <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.