Template:DRAAccessionNumbers: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
| {{#arraysize:tmp_{{#var:k}}}} | | {{#arraysize:tmp_{{#var:k}}}} | ||
| <nowiki/> | | <nowiki/> | ||
{{#switch: {{#var:m}}| 1 ={{#vardefine:link|experiment}}|2={{#vardefine:link|run}}|{{#vardefine:link|}} }}{{#vardefine:tmpe|{{#arrayindex:tmp_{{#var:k}}|{{#var:m}} }} }}{{#arraydefine:cont|{{#var:tmpe}}|,}}{{#ifexpr: {{#arraysize:cont}} > 1 |{{#loop: t | {{#switch: {{#var:m}}| 1 ={{#vardefine:link|sra-experiment}}|2={{#vardefine:link|sra-run}}|{{#vardefine:link|}} }}{{#vardefine:tmpe|{{#arrayindex:tmp_{{#var:k}}|{{#var:m}} }} }}{{#arraydefine:cont|{{#var:tmpe}}|,}}{{#ifexpr: {{#arraysize:cont}} > 1 |{{#loop: t | ||
| 0 | | 0 | ||
| {{#arraysize:cont}} | | {{#arraysize:cont}} | ||
| <nowiki/> | | <nowiki/> | ||
{{#vardefine:tmpinternal|{{#arrayindex:cont|{{#var:t}} }} }} | {{#vardefine:tmpinternal|{{#arrayindex:cont|{{#var:t}} }} }} | ||
{{#arraydefine:tmp__internal{{#var:t}}|{{#switch: {{#var:m}}| 1 = [ | {{#arraydefine:tmp__internal{{#var:t}}|{{#switch: {{#var:m}}| 1 = [https://ddbj.nig.ac.jp/resource/{{#var:link}}/{{#var:tmpinternal}} {{#var:tmpinternal}}]<br> | 2 = [https://ddbj.nig.ac.jp/resource/{{#var:link}}/{{#var:tmpinternal}} {{#var:tmpinternal}}]<br> | {{#var:tmpinternal}}<br>}} }} | ||
{{#arraymerge:t{{#var:t}}|t{{#expr:{{#var:t}}-1}}|tmp__internal{{#var:t}} }} | {{#arraymerge:t{{#var:t}}|t{{#expr:{{#var:t}}-1}}|tmp__internal{{#var:t}} }} | ||
{{#vardefine:out|{{#arrayprint:t{{#var:t}}| }} }} | {{#vardefine:out|{{#arrayprint:t{{#var:t}}| }} }} | ||
Line 19: | Line 19: | ||
{{#arraydefine:tmp__{{#var:m}}|{{#arrayprint:out_without_delimiter}} }} | {{#arraydefine:tmp__{{#var:m}}|{{#arrayprint:out_without_delimiter}} }} | ||
| | | | ||
{{#arraydefine:tmp__{{#var:m}}|{{#switch: {{#var:m}}| 1 = [ | {{#arraydefine:tmp__{{#var:m}}|{{#switch: {{#var:m}}| 1 = [https://ddbj.nig.ac.jp/resource/{{#var:link}}/{{#var:tmpe}} {{#var:tmpe}}] | 2 = [https://ddbj.nig.ac.jp/resource/{{#var:link}}/{{#var:tmpe}} {{#var:tmpe}}] | {{#var:tmpe}}}} }} }} | ||
{{#arraymerge:y{{#var:m}}|y{{#expr:{{#var:m}}-1}}|tmp__{{#var:m}} }} | {{#arraymerge:y{{#var:m}}|y{{#expr:{{#var:m}}-1}}|tmp__{{#var:m}} }} | ||
}}<!--end of loop m --> | }}<!--end of loop m --> | ||
Line 33: | Line 33: | ||
| {{#arraysize:DRA_sample_accession_array}} | | {{#arraysize:DRA_sample_accession_array}} | ||
| <nowiki/> | | <nowiki/> | ||
{{#vardefine:EXPMETHOD|{{#explode:{{#arrayindex:DRA_sample_accession_array| {{#var:j}} }}|@|0}} }}{{#vardefine:EXPMETHOD_URLed|{{#if:{{#var:EXPMETHOD}}|'''{{#var:EXPMETHOD}}'''<html> </html>|}}{{#vardefine:LIBID|{{#explode:{{#arrayindex:DRA_sample_accession_array| {{#var:j}} }}|@|1}} }}}}{{#vardefine:LIBID_URLed|{{#if:{{#var:LIBID}}|[ | {{#vardefine:EXPMETHOD|{{#explode:{{#arrayindex:DRA_sample_accession_array| {{#var:j}} }}|@|0}} }}{{#vardefine:EXPMETHOD_URLed|{{#if:{{#var:EXPMETHOD}}|'''{{#var:EXPMETHOD}}'''<html> </html>|}}{{#vardefine:LIBID|{{#explode:{{#arrayindex:DRA_sample_accession_array| {{#var:j}} }}|@|1}} }}}}{{#vardefine:LIBID_URLed|{{#if:{{#var:LIBID}}|[https://ddbj.nig.ac.jp/resource/biosample/{{#var:LIBID}} [[Sample accession::{{#var:LIBID}}]]]|}}}} | ||
<tr><td>{{#var:EXPMETHOD_URLed}}<td> <td>{{#var:LIBID_URLed}}</td><tr> | <tr><td>{{#var:EXPMETHOD_URLed}}<td> <td>{{#var:LIBID_URLed}}</td><tr> | ||
}} </table> | }} </table> |
Latest revision as of 13:46, 4 April 2022
{{{1}}} Accession numbers | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|