GithubHelp home page GithubHelp logo

chevreul's People

Contributors

bavanaa avatar mitsingh avatar mitsingh16 avatar whtns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chevreul's Issues

fetal age missing from 20151130-HS-FACS-Hs_proj

[Yesterday 11:43 PM] Shayler, Dominic
Hardeep's 2015 dataset doesn't have the Fetal_Age of his samples in it by default. I've pulled them from another one of my older merged datasets to merge into my new sets. However, every time I try to load the CSV the app crashes. Am I doing it wrong? I thought you had to select the shared column name you wanted to merge and load the .csv?

> They have changed the structure of the Seurat object with sc@assays$RNA@layers$counts rather than sc@assays$RNA@counts, so the save isn't recognising this difference when saving.

          > They have changed the structure of the Seurat object with sc@assays$RNA@layers$counts rather than sc@assays$RNA@counts, so the save isn't recognising this difference when saving.

Is it possible to have a version with the 'layers' bit added to the save and load Seurat Object?

It is possible to "patch" each of SaveH5Seurat, LoadH5Seurat functions (tested with Seurat v5.0.1).

Here it is for SaveH5Seurat:

#' Patch of SeuratDisk::SaveH5Seurat function
#'
#' The "Assay5" class attribute "RNA" needs to be converted to a standard "Assay"
#' class for compatibility with SeuratDisk. It requires to make a temporary copy
#' so the size of the object grows bigger.
#'
#' @param object the Seurat object
#' @param filename the file path where to save the Seurat object
#' @param verbose SaveH5Seurat verbosity
#' @param overwrite whether to overwrite an existing file
#' 
#' @return NULL
SaveH5SeuratObject <- function(
    object,
    filename,
    verbose = TRUE,
    overwrite = TRUE
    ) {
  
  # add copy of "RNA" 
  object[["RNA-tmp"]] <- CreateAssayObject(counts = object[["RNA"]]$counts)
  # remove original
  object[["RNA"]] <- NULL
  # export
  SaveH5Seurat(object, filename = filename, overwrite, verbose)
  
  return(NULL)
}

And for LoadH5Seurat:

#' Patch of SeuratDisk::LoadH5Seurat function
#'
#' The "Assay" class attribute "RNA" needs to be converted to the new "Assay5"
#' class. It requires to make a temporary copy so the size of the object grows
#' bigger.
#'
#' @param filename the file path where to save the Seurat object
#' @param verbose LoadH5Seurat verbosity
#' 
#' @return NULL
LoadH5SeuratObject <- function(
    filename,
    verbose = TRUE
) {
  
  # load h5 data
  object <- LoadH5Seurat(filename)
  # create "Assay5" class from old "Assay" class
  keys <- Key(object)
  slotID <- names(keys)[startsWith(keys, "rna")]
  object[["RNA"]] <- CreateAssay5Object(counts = object[[slotID]]$counts)
  # delete "Assay" class
  object[[slotID]] <- NULL
  # reorder assays list
  object@assays <- object@assays[sort(names(object@assays))]

  return(object)
}

The biggest caveat is that it requires to make a copy of the RNA assay at each pass (saving or loading). A direct conversion would be preferable, but I have not found such a function in the SeuratObject package.

EDIT: A better function would iterate over all assays and do what I did for RNA for each "Assay5" class assay.

Originally posted by @Gilquin in mojaveazure/seurat-disk#172 (comment)

integration crashes on integration of 8seq_fetal and 20181001-DS-organoid-Hs

​[12:37 AM] Shayler, Dominic
One other issue came up: I'm trying to merge all the fetal projects with the fetal/organoid 2018 project to get a fetal organoid combined plot. This integration crashes each time so I'm concerned I may have hit the memory limit because I've added a sizable chunk of extra cells. Would you be able to run this?

pipeline.Rmd

  • Document snakemake workflow;

  • link to cobriniklab repo

  • make flowchart with ggflowchart or any other tool.

  • should list:

    • input file type (.fastq, .bam, etc.)
    • name of tool (trimgalore, etc.)
    • description of tool (trim adapter sequences and low quality bases from sequencing reads)
    • relevant custom parameters
    • output file type (.bam, .gtf, etc.) 5. next step of output file.
  • expected output: fastqc > trimgalore > HISAT2 > stringtie > tximport > seurat; additional: megadepth, scanpy, velocyto

Human to mouse conversion issue?

When I run, I get the following error:

Error in convert_symbols_by_species(src_genes = rownames(seu$gene), src_species = "human") :
object 'human_to_mouse_homologs' not found

README.Rmd

* fix any broken bullet points
* remove 'site' header
* make home page and getting started the same document

* link to working interactive version of the app
* review the utility of create_project_db
* fix seurat demo link that doesn't work

  • review included data
  • add description of steps to view analysis details
  • move entire site under cobriniklab github user instead of whtns
    * add warning about usage and pitfalls

Integration

  • better checks for which organism is used for a given seurat object (solution in bioconductor?)
    outline:
  1. integrate within species (human or mouse)
  2. integrate across species (human and mouse)
  3. the steps of integration here
  4. assumptions of the input data
  • enough cells of each batch (>50?)
  • the same feature type (symbols, ensgenes, entrezids, etc.)
  1. limitations
  • data can't be too big

stretch: improve species checking in integration_workflow; refer to annotation types

Import Seurat Objects

Hi!

I'm trying to integrate mouse and human data together and I came across this project! Looks really awesome.

One thing I wanted to check was, if I could import my existing seurat objects directly into this tool? A few of these datasets have been around for a long time with all the compute done, so it would be really difficult to reanalyze them.

Regards,
Harish

Installation inquiry

Dearest Kevin,
We are molecular biology PhD students trying to use the seuratTools package in R (4.1.1 )
with Platform: x86_64-w64-mingw32/x64 (64-bit)
Nevertheless we struggle to install the package and the message error is as such;
Your current architecture is 32bit; however, this version of Python was compiled for 64bit.
Use reticulate::install_miniconda() if you'd like to install a Miniconda Python environment.
ERROR: loading failed

We were wandering if we may receive some guidance and troubleshooting

Sincerely,
Derek

visualization.Rmd

* change x-axis on transcript composition plot
* move TLDR section to 'Getting Started'

  • clean up prose
  • mention which dataset we are using up top
  • change variable names in assorted functions from 'metavar' or 'color.by' to 'group_by'
  • format all function names with backticks
  • run spellcheck
  • make plots smaller?

Transcript numbers detected

Transcript numbers detected in branch A,B and C <- Just like you generated genes detected (figure attached!).
genes detected

monocle stuff

  1. convert_seu_to_cds
  • need to switch b/w RNA and integrated datasets
  • need to do feature selection on non-integrated dataset
  • smartly deal with paritions (to get multiple pseudotimes; more modules)
  1. gene level plots
  2. subsetting
  3. plotly integration

Errors

  1. Monocle doesn't run on organoid app

Error when attempting to run "seu_complex_heatmap" command

I recently installed the seuratTools package as an attempt to streamline using Seurat and ComplexHeatmap together. However when I attempt to run the seu_complex_heatmap command I am met with the following error:

Error in as_mapper(.f, ...) : object 'set_names' not found
4.as_mapper(.f, ...)
3.purrr::map2(., ha_col_names.factor, set_names)
2.purrr::map(ha_col_names.factor, ~(scales::hue_pal())(length(.x))) %>% purrr::map2(ha_col_names.factor, set_names)
1.seu_complex_heatmap(oxy_rat_na, features = genes, group.by = "sample_condition")

Any advice as to how to fix this issue would be very appreciated. For reference, my data is a standard Seurat object and I am specifying a list of genes that the heatmap is meant to visualize. The commands I am using are as follows:

genes <- c("List_of_Genes")
seu_complex_heatmap(seurat_object, features=genes, group.by="sample_condition")

Where "sample_condition" is the metadata slot I want my columns to be grouped by. Thank you in advance for whatever help can be offered.

Dendrogram for Louvain clusters

Would it be possible to get dendrogram from Louvain cluster? As far as I understand, Louvain is based on Graph clustering representing non-linear structure, so I assume that it might not be possible, but I'd like to ask you just in case.

RNA velocity doesn't work

​[Yesterday 11:43 PM] Shayler, Dominic
Another question: The RNA Velocity doesn't work correct? Is there any way you might be able to run it on a set for me?

App functions

change selectizeinput to 'cluster' for all louvain cluster selections:

  • dimredplot
  • coverage plot
  • heatmap
  • violinplot
  • etc.

Installation Error

Why can't it be installed?

devtools::install_github("whtns/seuratTools")
Downloading GitHub repo whtns/seuratTools@HEAD
whtns-seuratTools-0504522/data/panc8.rda: truncated gzip input
tar.exe: Error exit delayed from previous errors.
Error: Failed to install 'seuratTools' from GitHub:
Does not appear to be an R package (no DESCRIPTION)

enrichmentbrowser broken?

One more question about GSEA. After I uploaded csv file and run the GSEA, the server's disconnected. Could you also have a look? I used 20200312-SHL-singlecell-Hs dataset. Thanks

Failure in installation

I got
Error: 'install_package' is not an exported object from 'namespace:devtools'
when I tried to install this package in R. Any one can help?

seuratApp

  1. All transcripts not visible (only 2/5 for NRL in 4seq and 6seq)
  2. scale bar not pegged at min 0 in 4seq NRL

preprocessing

  1. just show one cluster plot
  2. reformat TLDR
  3. change all data to human_gene_transcript_seu
  4. reformat tables
  5. put minimalApp in TLDR; link to working app
  6. split code across lines to limit scroll bars in output chunks
  7. clean up the last few chunks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.