summaryrefslogtreecommitdiff
path: root/issues
diff options
context:
space:
mode:
authorAlexander_Kabui2023-07-11 01:35:23 +0300
committerAlexander_Kabui2023-07-11 01:35:23 +0300
commitbdb1c7e0308e702d27acf6bb7c5b10f444b3f4e5 (patch)
tree9fbc1d581aefcd106dbcc9a130b9bf1948c7db2c /issues
parent9a7fd35850661916792887f2bb15fec50de317a9 (diff)
downloadgn-gemtext-bdb1c7e0308e702d27acf6bb7c5b10f444b3f4e5.tar.gz
update issue/linking genotype-files to dataset
Diffstat (limited to 'issues')
-rw-r--r--issues/linking_genotype-files-to-datasets.gmi100
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