{
  "id": 344824,
  "title": "I'm Sharing Models and Notebooks About Single-Cell Data",
  "url": "/competitions/open-problems-multimodal/discussion/344824",
  "author_name": "Hiram Coria 🧬",
  "post_date": "2022-08-16T18:45:47.288000",
  "votes": 38,
  "comment_count": 15,
  "views": 0,
  "content": "<h1>scRNA-seq 🧬</h1>\n<h2>1.  <a href=\"https://www.kaggle.com/hiramcho/scrna-seq-differential-expression-with-scvi\" target=\"_blank\">scRNA-seq 🧬: Differential Expression with scVI</a></h2>\n<p><strong>Linearly decoded VAE</strong> (<a href=\"https://docs.scvi-tools.org/en/stable/tutorials/notebooks/linear_decoder.html\" target=\"_blank\">LDVAE</a>) is a generative model similar to PCA which can be used similarly as <a href=\"https://docs.scvi-tools.org/en/stable/tutorials/notebooks/api_overview.html\" target=\"_blank\">scVI</a>, however, due that it has linear functions instead of neural networks it's more easy to interpret its ouput. In this notebook i used this model to get <strong>differential expression analysis</strong>.  </p>\n<h2>2. <a href=\"https://www.kaggle.com/hiramcho/scrna-seq-scanpy-scmer-for-feature-selection\" target=\"_blank\">scRNA-seq 🧬: Scanpy &amp; SCMER for Feature Selection</a></h2>\n<p><a href=\"https://scmer.readthedocs.io/en/latest/\" target=\"_blank\">SCMER</a> (single-cell manifold-preserving feature<br>\nselection) was used in notebook to get a compact version of the full dataset. I also do some visualizations and i have to admit that is too easy to use with <a href=\"https://scanpy.readthedocs.io/en/stable/index.html\" target=\"_blank\">Scanpy</a>, once you have your data in form of <code>adata</code> object.</p>\n<h2>3. <a href=\"https://www.kaggle.com/hiramcho/scrna-seq-scgae-with-spektral-and-rapids\" target=\"_blank\">scRNA-seq 🧬: scGAE with Spektral and RAPIDS</a></h2>\n<p>After some practice with SCMER i decided to use it to get a matrix that i could handle to train <strong>graph neural networks</strong> and only 13GB RAM. The GNN used is <a href=\"https://www.nature.com/articles/s41598-021-99003-7\" target=\"_blank\">scGAE</a>, a recently published model on Nature. scGAE performs clustering on its <strong>latent space</strong> and it can be used for downstram analysis.  </p>\n<h1>scATAC-seq 🧬</h1>\n<h2>4. <a href=\"https://www.kaggle.com/hiramcho/scatac-seq-feature-importance-with-tabnet\" target=\"_blank\">scATAC-seq 🧬: Feature Importance with TabNet</a></h2>\n<p>In this notebook, i used <strong>TabNet</strong>, a kind of transformer useful for tabular data. As many now, <strong>chromatin accessibility data</strong> is just a <em>matrix</em>. This matrix is contained on my <code>adata</code> object, <code>adata.X</code>. In resume, i used the mentioned matrix and <code>adata.obs[\"nucleosome_signal\"]</code> as my labels, i split it, trained my model and calculate <strong>feature importance</strong>.  </p>\n<h2>5. <a href=\"https://www.kaggle.com/code/hiramcho/scatac-seq-episcanpy-peakvi\" target=\"_blank\">scATAC-seq 🧬: EpiScanpy &amp; PeakVI</a></h2>\n<p>Here i used for the first time <a href=\"https://episcanpy.readthedocs.io/\" target=\"_blank\">EpiScanpy</a> and <a href=\"https://docs.scvi-tools.org/en/stable/tutorials/notebooks/PeakVI.html\" target=\"_blank\">PeakVi</a>. The can be used so easy on this kind of data. </p>",
  "messages": [
    {
      "id": 1901567,
      "postDate": "2022-08-16T18:45:47.290Z",
      "content": "<h1>scRNA-seq 🧬</h1>\n<h2>1.  <a href=\"https://www.kaggle.com/hiramcho/scrna-seq-differential-expression-with-scvi\" target=\"_blank\">scRNA-seq 🧬: Differential Expression with scVI</a></h2>\n<p><strong>Linearly decoded VAE</strong> (<a href=\"https://docs.scvi-tools.org/en/stable/tutorials/notebooks/linear_decoder.html\" target=\"_blank\">LDVAE</a>) is a generative model similar to PCA which can be used similarly as <a href=\"https://docs.scvi-tools.org/en/stable/tutorials/notebooks/api_overview.html\" target=\"_blank\">scVI</a>, however, due that it has linear functions instead of neural networks it's more easy to interpret its ouput. In this notebook i used this model to get <strong>differential expression analysis</strong>.  </p>\n<h2>2. <a href=\"https://www.kaggle.com/hiramcho/scrna-seq-scanpy-scmer-for-feature-selection\" target=\"_blank\">scRNA-seq 🧬: Scanpy &amp; SCMER for Feature Selection</a></h2>\n<p><a href=\"https://scmer.readthedocs.io/en/latest/\" target=\"_blank\">SCMER</a> (single-cell manifold-preserving feature<br>\nselection) was used in notebook to get a compact version of the full dataset. I also do some visualizations and i have to admit that is too easy to use with <a href=\"https://scanpy.readthedocs.io/en/stable/index.html\" target=\"_blank\">Scanpy</a>, once you have your data in form of <code>adata</code> object.</p>\n<h2>3. <a href=\"https://www.kaggle.com/hiramcho/scrna-seq-scgae-with-spektral-and-rapids\" target=\"_blank\">scRNA-seq 🧬: scGAE with Spektral and RAPIDS</a></h2>\n<p>After some practice with SCMER i decided to use it to get a matrix that i could handle to train <strong>graph neural networks</strong> and only 13GB RAM. The GNN used is <a href=\"https://www.nature.com/articles/s41598-021-99003-7\" target=\"_blank\">scGAE</a>, a recently published model on Nature. scGAE performs clustering on its <strong>latent space</strong> and it can be used for downstram analysis.  </p>\n<h1>scATAC-seq 🧬</h1>\n<h2>4. <a href=\"https://www.kaggle.com/hiramcho/scatac-seq-feature-importance-with-tabnet\" target=\"_blank\">scATAC-seq 🧬: Feature Importance with TabNet</a></h2>\n<p>In this notebook, i used <strong>TabNet</strong>, a kind of transformer useful for tabular data. As many now, <strong>chromatin accessibility data</strong> is just a <em>matrix</em>. This matrix is contained on my <code>adata</code> object, <code>adata.X</code>. In resume, i used the mentioned matrix and <code>adata.obs[\"nucleosome_signal\"]</code> as my labels, i split it, trained my model and calculate <strong>feature importance</strong>.  </p>\n<h2>5. <a href=\"https://www.kaggle.com/code/hiramcho/scatac-seq-episcanpy-peakvi\" target=\"_blank\">scATAC-seq 🧬: EpiScanpy &amp; PeakVI</a></h2>\n<p>Here i used for the first time <a href=\"https://episcanpy.readthedocs.io/\" target=\"_blank\">EpiScanpy</a> and <a href=\"https://docs.scvi-tools.org/en/stable/tutorials/notebooks/PeakVI.html\" target=\"_blank\">PeakVi</a>. The can be used so easy on this kind of data. </p>",
      "rawMarkdown": "# scRNA-seq 🧬\n\n## 1.  [scRNA-seq 🧬: Differential Expression with scVI](https://www.kaggle.com/hiramcho/scrna-seq-differential-expression-with-scvi) \n**Linearly decoded VAE** ([LDVAE](https://docs.scvi-tools.org/en/stable/tutorials/notebooks/linear_decoder.html)) is a generative model similar to PCA which can be used similarly as [scVI](https://docs.scvi-tools.org/en/stable/tutorials/notebooks/api_overview.html), however, due that it has linear functions instead of neural networks it's more easy to interpret its ouput. In this notebook i used this model to get **differential expression analysis**.  \n\n\n## 2. [scRNA-seq 🧬: Scanpy & SCMER for Feature Selection](https://www.kaggle.com/hiramcho/scrna-seq-scanpy-scmer-for-feature-selection)\n\n[SCMER](https://scmer.readthedocs.io/en/latest/) (single-cell manifold-preserving feature\nselection) was used in notebook to get a compact version of the full dataset. I also do some visualizations and i have to admit that is too easy to use with [Scanpy](https://scanpy.readthedocs.io/en/stable/index.html), once you have your data in form of `adata` object.\n\n\n## 3. [scRNA-seq 🧬: scGAE with Spektral and RAPIDS](https://www.kaggle.com/hiramcho/scrna-seq-scgae-with-spektral-and-rapids)\n\nAfter some practice with SCMER i decided to use it to get a matrix that i could handle to train **graph neural networks** and only 13GB RAM. The GNN used is [scGAE](https://www.nature.com/articles/s41598-021-99003-7), a recently published model on Nature. scGAE performs clustering on its **latent space** and it can be used for downstram analysis.  \n\n\n# scATAC-seq 🧬\n\n## 4. [scATAC-seq 🧬: Feature Importance with TabNet](https://www.kaggle.com/hiramcho/scatac-seq-feature-importance-with-tabnet) \nIn this notebook, i used **TabNet**, a kind of transformer useful for tabular data. As many now, **chromatin accessibility data** is just a *matrix*. This matrix is contained on my `adata` object, `adata.X`. In resume, i used the mentioned matrix and `adata.obs[\"nucleosome_signal\"]` as my labels, i split it, trained my model and calculate **feature importance**.  \n\n\n## 5. [scATAC-seq 🧬: EpiScanpy & PeakVI](https://www.kaggle.com/code/hiramcho/scatac-seq-episcanpy-peakvi) \n\nHere i used for the first time [EpiScanpy](https://episcanpy.readthedocs.io/) and [PeakVi](https://docs.scvi-tools.org/en/stable/tutorials/notebooks/PeakVI.html). The can be used so easy on this kind of data. ",
      "votes": 37
    },
    {
      "id": 1917923,
      "postDate": "2022-08-29T06:52:53.210Z",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/hiramcho\" target=\"_blank\">@hiramcho</a> thanks for sharing the ideas！</p>",
      "rawMarkdown": "Hi @hiramcho thanks for sharing the ideas！",
      "votes": 1
    },
    {
      "id": 1916332,
      "postDate": "2022-08-27T19:14:07.823Z",
      "content": "<p><a href=\"https://www.kaggle.com/hiramcho\" target=\"_blank\">@hiramcho</a> Please look at:<br>\n<a href=\"https://www.kaggle.com/competitions/open-problems-multimodal/discussion/348293\" target=\"_blank\">https://www.kaggle.com/competitions/open-problems-multimodal/discussion/348293</a><br>\n<a href=\"https://www.kaggle.com/competitions/open-problems-multimodal/discussion/348294\" target=\"_blank\">https://www.kaggle.com/competitions/open-problems-multimodal/discussion/348294</a><br>\nWould be so kind to join and/or give a webinar on your work ? </p>",
      "rawMarkdown": "@hiramcho Please look at:\nhttps://www.kaggle.com/competitions/open-problems-multimodal/discussion/348293\nhttps://www.kaggle.com/competitions/open-problems-multimodal/discussion/348294\nWould be so kind to join and/or give a webinar on your work ? ",
      "votes": 2,
      "replies": [
        {
          "id": 1916399,
          "postDate": "2022-08-27T20:53:14.513Z",
          "content": "<p>Hi, I've never joined to a webinar, if you help me sharing what do you need from me it would be awesome.</p>",
          "rawMarkdown": "Hi, I've never joined to a webinar, if you help me sharing what do you need from me it would be awesome."
        },
        {
          "id": 1916424,
          "postDate": "2022-08-27T21:29:16.523Z",
          "content": "<p>Just explain  about your notebooks or something related + explain some biological background,<br>\nwhat biological question is behind , what was known before, etc..<br>\nFor example If it can be applied to current competition (up to you).<br>\nJust standard presentation of the work…</p>",
          "rawMarkdown": "Just explain  about your notebooks or something related + explain some biological background,\nwhat biological question is behind , what was known before, etc..\nFor example If it can be applied to current competition (up to you).\nJust standard presentation of the work...\n",
          "votes": 2
        },
        {
          "id": 1916506,
          "postDate": "2022-08-28T00:12:23.953Z",
          "content": "<p>Sure, when is this webinar?</p>",
          "rawMarkdown": "Sure, when is this webinar?",
          "votes": 1
        },
        {
          "id": 1916825,
          "postDate": "2022-08-28T07:29:20.483Z",
          "content": "<p>Great ! Thank you !</p>\n<p>There is already planned webinars on Monday and Wednesday (see link post above). <br>\nMay be you can give webinar - the next Monday -  5 September ? <br>\nOr Tuesday - 6  or Wednesday - 7? What is convenient for you ? </p>",
          "rawMarkdown": "Great ! Thank you !\n\nThere is already planned webinars on Monday and Wednesday (see link post above). \nMay be you can give webinar - the next Monday -  5 September ? \nOr Tuesday - 6  or Wednesday - 7? What is convenient for you ? \n",
          "votes": 1
        },
        {
          "id": 1917179,
          "postDate": "2022-08-28T13:41:04.227Z",
          "content": "<p>Sure, It would a pleasure</p>",
          "rawMarkdown": "Sure, It would a pleasure\n",
          "votes": 2
        },
        {
          "id": 1917536,
          "postDate": "2022-08-28T20:18:01.460Z",
          "content": "<p>So Monday 5 September is Okay, yes ?<br>\nWhat is your time zone ? <br>\nTime zone of Paris  -  evening time say 18.00 is it Okay ? Or 17.00 or 19.00 (that is typical webinar time in our community) .</p>",
          "rawMarkdown": "So Monday 5 September is Okay, yes ?\nWhat is your time zone ? \nTime zone of Paris  -  evening time say 18.00 is it Okay ? Or 17.00 or 19.00 (that is typical webinar time in our community) .\n",
          "votes": 1
        },
        {
          "id": 1918412,
          "postDate": "2022-08-29T14:59:35.367Z",
          "content": "<p>It's ok, I think that that time is appropiate</p>",
          "rawMarkdown": "It's ok, I think that that time is appropiate",
          "votes": 1
        },
        {
          "id": 1918709,
          "postDate": "2022-08-29T19:06:46.890Z",
          "content": "<p>Great ! So planned ! <br>\nLet us keep in contact !</p>",
          "rawMarkdown": "Great ! So planned ! \nLet us keep in contact !\n"
        }
      ]
    },
    {
      "id": 1924608,
      "postDate": "2022-09-03T08:16:14.777Z",
      "content": "<p><a href=\"https://www.kaggle.com/hiramcho\" target=\"_blank\">@hiramcho</a> <br>\nHello Hiram,<br>\njust to confirm - is everything Okay with your webinar on Monday ? (which we discussed before) </p>",
      "rawMarkdown": "@hiramcho \nHello Hiram,\njust to confirm - is everything Okay with your webinar on Monday ? (which we discussed before) "
    },
    {
      "id": 2014777,
      "postDate": "2022-11-02T20:25:02.553Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 2167376,
      "postDate": "2023-03-03T13:01:19.873Z",
      "content": "<p>Thanks for sharing! </p>",
      "rawMarkdown": "Thanks for sharing! "
    },
    {
      "id": 2028799,
      "postDate": "2022-11-14T08:22:58.823Z",
      "content": "<p>Thank you very much for sharing this!        </p>",
      "rawMarkdown": "Thank you very much for sharing this!\t\t"
    },
    {
      "id": 2028776,
      "postDate": "2022-11-14T08:11:17.377Z",
      "content": "<p>This is amazing!Thanks</p>",
      "rawMarkdown": "This is amazing!Thanks"
    }
  ],
  "comments": [
    {
      "id": 1917923,
      "author_name": "A Beginner",
      "author_url": "",
      "post_date": "2022-08-29T06:52:53.210000",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/hiramcho\" target=\"_blank\">@hiramcho</a> thanks for sharing the ideas！</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1916332,
      "author_name": "Alexander Chervov",
      "author_url": "",
      "post_date": "2022-08-27T19:14:07.823000",
      "content": "<p><a href=\"https://www.kaggle.com/hiramcho\" target=\"_blank\">@hiramcho</a> Please look at:<br>\n<a href=\"https://www.kaggle.com/competitions/open-problems-multimodal/discussion/348293\" target=\"_blank\">https://www.kaggle.com/competitions/open-problems-multimodal/discussion/348293</a><br>\n<a href=\"https://www.kaggle.com/competitions/open-problems-multimodal/discussion/348294\" target=\"_blank\">https://www.kaggle.com/competitions/open-problems-multimodal/discussion/348294</a><br>\nWould be so kind to join and/or give a webinar on your work ? </p>",
      "votes": 2,
      "replies": [
        {
          "id": 1916399,
          "author_name": "Hiram Coria 🧬",
          "author_url": "",
          "post_date": "2022-08-27T20:53:14.513000",
          "content": "<p>Hi, I've never joined to a webinar, if you help me sharing what do you need from me it would be awesome.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1916424,
          "author_name": "Alexander Chervov",
          "author_url": "",
          "post_date": "2022-08-27T21:29:16.523000",
          "content": "<p>Just explain  about your notebooks or something related + explain some biological background,<br>\nwhat biological question is behind , what was known before, etc..<br>\nFor example If it can be applied to current competition (up to you).<br>\nJust standard presentation of the work…</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1916506,
          "author_name": "Hiram Coria 🧬",
          "author_url": "",
          "post_date": "2022-08-28T00:12:23.953000",
          "content": "<p>Sure, when is this webinar?</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1916825,
          "author_name": "Alexander Chervov",
          "author_url": "",
          "post_date": "2022-08-28T07:29:20.483000",
          "content": "<p>Great ! Thank you !</p>\n<p>There is already planned webinars on Monday and Wednesday (see link post above). <br>\nMay be you can give webinar - the next Monday -  5 September ? <br>\nOr Tuesday - 6  or Wednesday - 7? What is convenient for you ? </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1917179,
          "author_name": "Hiram Coria 🧬",
          "author_url": "",
          "post_date": "2022-08-28T13:41:04.227000",
          "content": "<p>Sure, It would a pleasure</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1917536,
          "author_name": "Alexander Chervov",
          "author_url": "",
          "post_date": "2022-08-28T20:18:01.460000",
          "content": "<p>So Monday 5 September is Okay, yes ?<br>\nWhat is your time zone ? <br>\nTime zone of Paris  -  evening time say 18.00 is it Okay ? Or 17.00 or 19.00 (that is typical webinar time in our community) .</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1918412,
          "author_name": "Hiram Coria 🧬",
          "author_url": "",
          "post_date": "2022-08-29T14:59:35.367000",
          "content": "<p>It's ok, I think that that time is appropiate</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1918709,
          "author_name": "Alexander Chervov",
          "author_url": "",
          "post_date": "2022-08-29T19:06:46.890000",
          "content": "<p>Great ! So planned ! <br>\nLet us keep in contact !</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1924608,
      "author_name": "Alexander Chervov",
      "author_url": "",
      "post_date": "2022-09-03T08:16:14.777000",
      "content": "<p><a href=\"https://www.kaggle.com/hiramcho\" target=\"_blank\">@hiramcho</a> <br>\nHello Hiram,<br>\njust to confirm - is everything Okay with your webinar on Monday ? (which we discussed before) </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2014777,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-11-02T20:25:02.553000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2167376,
      "author_name": "Yanan Lou",
      "author_url": "",
      "post_date": "2023-03-03T13:01:19.873000",
      "content": "<p>Thanks for sharing! </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2028799,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-11-14T08:22:58.823000",
      "content": "<p>Thank you very much for sharing this!        </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2028776,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-11-14T08:11:17.377000",
      "content": "<p>This is amazing!Thanks</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1901567": "# scRNA-seq 🧬\n\n## 1.  [scRNA-seq 🧬: Differential Expression with scVI](https://www.kaggle.com/hiramcho/scrna-seq-differential-expression-with-scvi) \n**Linearly decoded VAE** ([LDVAE](https://docs.scvi-tools.org/en/stable/tutorials/notebooks/linear_decoder.html)) is a generative model similar to PCA which can be used similarly as [scVI](https://docs.scvi-tools.org/en/stable/tutorials/notebooks/api_overview.html), however, due that it has linear functions instead of neural networks it's more easy to interpret its ouput. In this notebook i used this model to get **differential expression analysis**.  \n\n\n## 2. [scRNA-seq 🧬: Scanpy & SCMER for Feature Selection](https://www.kaggle.com/hiramcho/scrna-seq-scanpy-scmer-for-feature-selection)\n\n[SCMER](https://scmer.readthedocs.io/en/latest/) (single-cell manifold-preserving feature\nselection) was used in notebook to get a compact version of the full dataset. I also do some visualizations and i have to admit that is too easy to use with [Scanpy](https://scanpy.readthedocs.io/en/stable/index.html), once you have your data in form of `adata` object.\n\n\n## 3. [scRNA-seq 🧬: scGAE with Spektral and RAPIDS](https://www.kaggle.com/hiramcho/scrna-seq-scgae-with-spektral-and-rapids)\n\nAfter some practice with SCMER i decided to use it to get a matrix that i could handle to train **graph neural networks** and only 13GB RAM. The GNN used is [scGAE](https://www.nature.com/articles/s41598-021-99003-7), a recently published model on Nature. scGAE performs clustering on its **latent space** and it can be used for downstram analysis.  \n\n\n# scATAC-seq 🧬\n\n## 4. [scATAC-seq 🧬: Feature Importance with TabNet](https://www.kaggle.com/hiramcho/scatac-seq-feature-importance-with-tabnet) \nIn this notebook, i used **TabNet**, a kind of transformer useful for tabular data. As many now, **chromatin accessibility data** is just a *matrix*. This matrix is contained on my `adata` object, `adata.X`. In resume, i used the mentioned matrix and `adata.obs[\"nucleosome_signal\"]` as my labels, i split it, trained my model and calculate **feature importance**.  \n\n\n## 5. [scATAC-seq 🧬: EpiScanpy & PeakVI](https://www.kaggle.com/code/hiramcho/scatac-seq-episcanpy-peakvi) \n\nHere i used for the first time [EpiScanpy](https://episcanpy.readthedocs.io/) and [PeakVi](https://docs.scvi-tools.org/en/stable/tutorials/notebooks/PeakVI.html). The can be used so easy on this kind of data. ",
    "1917923": "Hi @hiramcho thanks for sharing the ideas！",
    "1916332": "@hiramcho Please look at:\nhttps://www.kaggle.com/competitions/open-problems-multimodal/discussion/348293\nhttps://www.kaggle.com/competitions/open-problems-multimodal/discussion/348294\nWould be so kind to join and/or give a webinar on your work ? ",
    "1924608": "@hiramcho \nHello Hiram,\njust to confirm - is everything Okay with your webinar on Monday ? (which we discussed before) ",
    "2014777": "",
    "2167376": "Thanks for sharing! ",
    "2028799": "Thank you very much for sharing this!\t\t",
    "2028776": "This is amazing!Thanks"
  }
}