diff options
author | Alexander_Kabui | 2023-07-11 01:35:23 +0300 |
---|---|---|
committer | Alexander_Kabui | 2023-07-11 01:35:23 +0300 |
commit | bdb1c7e0308e702d27acf6bb7c5b10f444b3f4e5 (patch) | |
tree | 9fbc1d581aefcd106dbcc9a130b9bf1948c7db2c /issues | |
parent | 9a7fd35850661916792887f2bb15fec50de317a9 (diff) | |
download | gn-gemtext-bdb1c7e0308e702d27acf6bb7c5b10f444b3f4e5.tar.gz |
update issue/linking genotype-files to dataset
Diffstat (limited to 'issues')
-rw-r--r-- | issues/linking_genotype-files-to-datasets.gmi | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/issues/linking_genotype-files-to-datasets.gmi b/issues/linking_genotype-files-to-datasets.gmi index 03a302f..7c09f48 100644 --- a/issues/linking_genotype-files-to-datasets.gmi +++ b/issues/linking_genotype-files-to-datasets.gmi @@ -46,3 +46,103 @@ and InbredSet.SpeciesId = Species.Id and group by InbredSet.Name order by InbredSet.FullName ``` + + +## Notes of linking dataset to genofile + +```sql +SELECT PublishFreeze.Name, PublishFreeze.FullName +FROM PublishFreeze, InbredSet +WHERE InbredSet.Name = 'BXD' AND +PublishFreeze.InbredSetId = InbredSet.Id +ORDER BY PublishFreeze.CreateTime ASC +``` + +fetch all publish + +```sql +SELECT PublishFreeze.Name, PublishFreeze.FullName +FROM PublishFreeze, InbredSet +WHERE +PublishFreeze.InbredSetId = InbredSet.Id +ORDER BY PublishFreeze.CreateTime ASC + +``` + +#other phenotypes + + +```sql +SELECT InfoFiles.GN_AccesionId, PublishFreeze.Name, +PublishFreeze.FullName FROM InfoFiles, PublishFreeze, +InbredSet WHERE InbredSet.Name = 'BXD' AND +PublishFreeze.InbredSetId = InbredSet.Id AND +InfoFiles.InfoPageName = PublishFreeze.Name +ORDER BY PublishFreeze.CreateTime ASC +``` + + + +fetch all groups + +```sql +SELECT InfoFiles.GN_AccesionId, PublishFreeze.Name, +InbredSet.Name FROM InfoFiles, PublishFreeze, +InbredSet WHERE +PublishFreeze.InbredSetId = InbredSet.Id AND +InfoFiles.InfoPageName = PublishFreeze.Name +ORDER BY PublishFreeze.CreateTime ASC +``` +```sql ++---------------+------------+------+ +| GN_AccesionId | Name | Name | ++---------------+------------+------+ +| 602 | BXDPublish | BXD | +| 635 | HLCPublish | HLC | ++---------------+------------+------+ + +``` + + +** genotypes + +Fetch specific group + + +```sql +SELECT InfoFiles.GN_AccesionId +FROM InfoFiles, GenoFreeze, InbredSet +WHERE InbredSet.Name = 'BXD' AND +GenoFreeze.InbredSetId = InbredSet.Id AND +InfoFiles.InfoPageName = GenoFreeze.ShortName +ORDER BY GenoFreeze.CreateTime +DESC + +``` + + +Fetch all groups + + +SELECT InfoFiles.GN_AccesionId,InbredSet.Name +FROM InfoFiles, GenoFreeze, InbredSet +WHERE +GenoFreeze.InbredSetId = InbredSet.Id AND +InfoFiles.InfoPageName = GenoFreeze.ShortName +ORDER BY GenoFreeze.CreateTime +DESC +results for example related files are + +```sql +results + ++---------------+------+ +| GN_AccesionId | Name | ++---------------+------+ +| 600 | BXD | ++---------------+------+ + + + +600Geno +```
\ No newline at end of file |