Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • bioBob
    Member
    • Mar 2011
    • 72

    DESeq error

    Hi,

    I am getting a new (for me) error in DESeq. Perhaps it is just late in the day...

    Here is the error:
    > ###control vs sick, T
    > cds_T_CS<-newCountDataSet(all_T_data_m7[1:33709,], ED_T_m7)
    > cds_T_CS = estimateSizeFactors(cds_T_CS)
    > cds_T_CS<-estimateDispersions(cds_T_CS,sharingMode="fit-only")
    Error in if (nr < 2) stop("nrow(modelMatrix) must be >=2.") :
    argument is of length zero

    My data looks pretty normal...

    > str(all_T_data_m7)
    'data.frame': 33714 obs. of 7 variables:
    $ L4_R1_ACTTGA_idx8_2T : int 299 30 39 34 18 517 1333 68 98 0 ...
    $ L4_R1_AGTTCC_idx14_8T: int 619 53 213 48 46 557 1681 358 282 0 ...

    > head(all_T_data_m7)
    L4_R1_ACTTGA_idx8_2T L4_R1_AGTTCC_idx14_8T ...
    XLOC_000001 299 619 ...
    XLOC_000002 30 53 ...
    XLOC_000003 39 213 ...

    As does my experiment definition data frame...

    > ED_T_m7
    condition
    L4_R1_ACTTGA_idx8_2T sick
    L4_R1_AGTTCC_idx14_8T control
    L4_R1_CAGATC_idx7_1T sick
    L4_R1_CTTGTA_idx12_6T control
    L4_R1_GATCAG_idx9_3T sick
    L4_R1_GGCTAC_idx11_5T sick
    L4_R1_TAGCTT_idx10_4T sick
    > str(ED_T_m7)
    'data.frame': 7 obs. of 1 variable:
    $ condition: Factor w/ 2 levels "control","sick": 2 1 2 1 2 2 2


    Any suggestions??
  • bioBob
    Member
    • Mar 2011
    • 72

    #2
    Well, I figure out what the culprit is, but I am not sure why. It doesn't like the experiment definition data frame. When do this it works:

    cds_T_CS<-newCountDataSet(all_T_data_m7[1:33709,], c("sick","control","sick","control","sick","sick","sick"))
    cds_T_CS = estimateSizeFactors(cds_T_CS)
    cds_T_CS<-estimateDispersions(cds_T_CS,sharingMode="fit-only")

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by SEQadmin2



      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
      ...
      07-09-2026, 11:10 AM
    • SEQadmin2
      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
      by SEQadmin2



      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
      07-08-2026, 05:17 AM
    • GATTACAT
      Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by GATTACAT
      Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
      07-01-2026, 11:43 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 07-13-2026, 10:26 AM
    0 responses
    18 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-09-2026, 10:04 AM
    0 responses
    30 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-08-2026, 10:08 AM
    0 responses
    16 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-07-2026, 11:05 AM
    0 responses
    34 views
    0 reactions
    Last Post SEQadmin2  
    Working...