1 Adeanei fun!

## Trying attempt: rtracklayer::import.gff3(gff, sequenceRegionsAsSeqinfo=TRUE)
## Trying attempt: rtracklayer::import.gff3(gff, sequenceRegionsAsSeqinfo=FALSE)
## Had a successful gff import with rtracklayer::import.gff3(gff, sequenceRegionsAsSeqinfo=FALSE)
## Returning a df with 16 columns and 16888 rows.
##                                             name.tooltip
## AGDE_00001 AGDE_00001: peptide alpha-N-acetyltransferase
## AGDE_00002              AGDE_00002: hypothetical protein
## AGDE_00003              AGDE_00003: hypothetical protein
## AGDE_00004      AGDE_00004: exosome-associated protein 2
## AGDE_00005              AGDE_00005: hypothetical protein
## AGDE_00006              AGDE_00006: hypothetical protein
## Reading the sample metadata.
## The sample definitions comprises: 7 rows(samples) and 6 columns(metadata fields).
## Reading count tables.
## Reading count files with read.table().
## /mnt/sshfs/cbcbsub01/fs/cbcb-lab/nelsayed/scratch/atb/small_rna/adeanei/preprocessing/small_rnav2/hpgl0293/hpgl0293_adeanei.count.xz contains 16893 rows.
## /mnt/sshfs/cbcbsub01/fs/cbcb-lab/nelsayed/scratch/atb/small_rna/adeanei/preprocessing/small_rnav2/hpgl0294/hpgl0294_adeanei.count.xz contains 16893 rows and merges to 16893 rows.
## /mnt/sshfs/cbcbsub01/fs/cbcb-lab/nelsayed/scratch/atb/small_rna/adeanei/preprocessing/small_rnav2/hpgl0295/hpgl0295_adeanei.count.xz contains 16893 rows and merges to 16893 rows.
## /mnt/sshfs/cbcbsub01/fs/cbcb-lab/nelsayed/scratch/atb/small_rna/adeanei/preprocessing/small_rnav2/hpgl0561/hpgl0561_adeanei.count.xz contains 16893 rows and merges to 16893 rows.
## /mnt/sshfs/cbcbsub01/fs/cbcb-lab/nelsayed/scratch/atb/small_rna/adeanei/preprocessing/small_rnav2/hpgl0562/hpgl0562_adeanei.count.xz contains 16893 rows and merges to 16893 rows.
## rnaseq/hpgl0323/hpgl0323_forward-trimmed-v1M1l20.count.xz contains 16893 rows and merges to 16893 rows.
## rnaseq/hpgl0563/hpgl0563_forward-trimmed-v1M1l20.count.xz contains 16893 rows and merges to 16893 rows.
## Finished reading count data.
## Matched 16888 annotations and counts.
## Bringing together the count matrix and gene information.
## Some annotations were lost in merging, setting them to 'undefined'.
## Saving the expressionset to 'expt.rda'.
## The final expressionset has 16888 rows and 7 columns.
## Using a subset expression.
## There were 7, now there are 5 samples.
## Using a subset expression.
## There were 7, now there are 2 samples.
## This function will replace the expt$expressionset slot with:
## log2(cpm(quant(cbcb(data))))
## It will save copies of each step along the way
##  in expt$normalized with the corresponding libsizes. Keep libsizes in mind
##  when invoking limma.  The appropriate libsize is non-log(cpm(normalized)).
##  This is most likely kept at:
##  'new_expt$normalized$intermediate_counts$normalization$libsizes'
##  A copy of this may also be found at:
##  new_expt$best_libsize
## Not correcting the count-data for batch effects.  If batch is
##  included in EdgerR/limma's model, then this is probably wise; but in extreme
##  batch effects this is a good parameter to play with.
## Step 1: performing count filter with option: cbcb
## Removing 175 low-count genes (16713 remaining).
## Step 2: normalizing the data with quant.
## Step 3: converting the data with cpm.
## Step 4: transforming the data with log2.
## transform_counts: Found 18 values equal to 0, adding 1 to the matrix.
## Step 5: not doing batch correction.

## This function will replace the expt$expressionset slot with:
## log2(cpm(quant(cbcb(data))))
## It will save copies of each step along the way
##  in expt$normalized with the corresponding libsizes. Keep libsizes in mind
##  when invoking limma.  The appropriate libsize is non-log(cpm(normalized)).
##  This is most likely kept at:
##  'new_expt$normalized$intermediate_counts$normalization$libsizes'
##  A copy of this may also be found at:
##  new_expt$best_libsize
## Not correcting the count-data for batch effects.  If batch is
##  included in EdgerR/limma's model, then this is probably wise; but in extreme
##  batch effects this is a good parameter to play with.
## Step 1: performing count filter with option: cbcb
## Removing 235 low-count genes (16653 remaining).
## Step 2: normalizing the data with quant.
## Step 3: converting the data with cpm.
## Step 4: transforming the data with log2.
## transform_counts: Found 15 values equal to 0, adding 1 to the matrix.
## Step 5: not doing batch correction.
## This function will replace the expt$expressionset slot with:
## log2(cpm(quant(cbcb(data))))
## It will save copies of each step along the way
##  in expt$normalized with the corresponding libsizes. Keep libsizes in mind
##  when invoking limma.  The appropriate libsize is non-log(cpm(normalized)).
##  This is most likely kept at:
##  'new_expt$normalized$intermediate_counts$normalization$libsizes'
##  A copy of this may also be found at:
##  new_expt$best_libsize
## Not correcting the count-data for batch effects.  If batch is
##  included in EdgerR/limma's model, then this is probably wise; but in extreme
##  batch effects this is a good parameter to play with.
## Step 1: performing count filter with option: cbcb
## Removing 8719 low-count genes (8169 remaining).
## Step 2: normalizing the data with quant.
## Step 3: converting the data with cpm.
## Step 4: transforming the data with log2.
## Step 5: not doing batch correction.

## Plotting a PCA before surrogates/batch inclusion.
## Not putting labels on the plot.
## Using limma's removeBatchEffect to visualize with(out) batch inclusion.
## Not putting labels on the plot.
## Finished running DE analyses, collecting outputs.
## Comparing analyses.
## Deleting the file small_pairwise.xlsx before writing the tables.
## Writing a legend of columns.
## Printing a pca plot before/after surrogates/batch estimation.
## Working on table 1/1: wt_vs_alpha
## Adding venn plots for wt_vs_alpha.

## Limma expression coefficients for wt_vs_alpha; R^2: 0.424; equation: y = 0.615x + 1.31
## Deseq expression coefficients for wt_vs_alpha; R^2: 0.408; equation: y = 0.491x + 1.73
## Edger expression coefficients for wt_vs_alpha; R^2: 0.39; equation: y = 0.442x + 2.64
## Writing summary information, compare_plot is: TRUE.
## Performing save of small_pairwise.xlsx.

LS0tCnRpdGxlOiAiU29tZSB2ZXJ5IG9sZCBBbmdvbW9uYXMgZGVhbmVpIGRhdGEuIgphdXRob3I6ICJhdGIgYWJlbGV3QGdtYWlsLmNvbSIKZGF0ZTogImByIFN5cy5EYXRlKClgIgpvdXRwdXQ6CiAgaHRtbF9kb2N1bWVudDoKICAgIGNvZGVfZG93bmxvYWQ6IHRydWUKICAgIGNvZGVfZm9sZGluZzogc2hvdwogICAgZmlnX2NhcHRpb246IHRydWUKICAgIGZpZ19oZWlnaHQ6IDcKICAgIGZpZ193aWR0aDogNwogICAgaGlnaGxpZ2h0OiB0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