49899ef69309d2a0ab6ad785f455eb53a8443a06,scanpy/exs/builtin.py,,moignard15_raw,#,265
Before Change
// annotate rows of X with Moignard et al. (2015) experimental cell groups
groups_names = ["HF", "NP", "PS", "4SG", "4SFG"]
groups = [] // a list with n entries (one for each sample)
for name in cellnames:
for groupname in groups_names:
if name.startswith(groupname):
groups.append(groupname)
// groups are categorical annotation for rows of X
ddata["rowcat"] = {"groups": groups}
// add additional metadata for the groups, we want them to be ordered
// and we want custom colors for each group
ddata["groups_names"] = groups_names
After Change
adata["groups_names"] = groups_names = ["HF", "NP", "PS", "4SG", "4SFG"]
adata["groups_colors"] = ["//D7A83E", "/ǝAAE5D", "/릉ABC", "//AF353A", "/"]
// get name for each cell
adata.smp["groups"] = [
next(gname for gname in groups_names if sname.startswith(gname))
for sname in adata.smp_names]
return adata
def moignard15_dpt(ddpt):
// switch on annotation by uncommenting the following
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: theislab/scanpy
Commit Name: 49899ef69309d2a0ab6ad785f455eb53a8443a06
Time: 2017-02-08
Author: f.alex.wolf@gmx.de
File Name: scanpy/exs/builtin.py
Class Name:
Method Name: moignard15_raw
Project Name: erikbern/ann-benchmarks
Commit Name: 97c34feee4f172bcf6907cfb63f99a52274c34e0
Time: 2020-07-12
Author: ubuntu@ip-172-31-31-105.ec2.internal
File Name: install.py
Class Name:
Method Name:
Project Name: theislab/scanpy
Commit Name: 49899ef69309d2a0ab6ad785f455eb53a8443a06
Time: 2017-02-08
Author: f.alex.wolf@gmx.de
File Name: scanpy/exs/builtin.py
Class Name:
Method Name: moignard15_raw
Project Name: IndicoDataSolutions/finetune
Commit Name: 78962a65d919e3f21ecdf1d58155efd0c4c3f815
Time: 2019-05-14
Author: benlt@hotmail.co.uk
File Name: finetune/base_models/bert/encoder.py
Class Name: BERTEncoder
Method Name: _encode