Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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??

  • #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

    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM
    • seqadmin
      Strategies for Sequencing Challenging Samples
      by seqadmin


      Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
      03-22-2024, 06:39 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    30 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    32 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    28 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-04-2024, 09:00 AM
    0 responses
    52 views
    0 likes
    Last Post seqadmin  
    Working...
    X