Personal tools

Template:DRAAccessionNumbers: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
mNo edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:DRA_sample_accession_content|{{{1}}}}}{{#vardefine:accession_numbers_content|{{{2}}}}}{{#vardefine:library_ids_content|{{{3}}}}}{{#arraydefine:DRA_sample_accession_array|{{#var:DRA_sample_accession_content}}|!}}{{#arraydefine:accession_numbers_array|{{#var:accession_numbers_content}}|!}}{{#arraydefine:library_ids_array|{{#var:library_ids_content}}|!}}{{#arraymerge:new_key |accession_numbers_array |library_ids_array}}{{#arraydefine:headers|Library id,Method,Exp. accession id,Run accession id,BAM accession id,CTSS accession id|;}}
{{#vardefine:DRA_sample_accession_content|{{{2}}}}}{{#vardefine:accession_numbers_content|{{{3}}}}}{{#vardefine:library_ids_content|{{{4}}}}}{{#arraydefine:DRA_sample_accession_array|{{#var:DRA_sample_accession_content}}|!}}{{#arraydefine:accession_numbers_array|{{#var:accession_numbers_content}}|!}}{{#arraydefine:library_ids_array|{{#var:library_ids_content}}|!}}{{#arraymerge:new_key |accession_numbers_array |library_ids_array}}{{#arraydefine:headers|Library id,Method,Exp. accession id,Run accession id|;}}{{#arraydefine:headers_sample_access_numbers|Method,Sample accession id|;}}{{#arraydefine:y-1|}}{{#arraydefine:k-1|}}{{#vardefine:e-1|}}{{#vardefine:t-1|}}{{#vardefine:header_species1|{{#switch: {{{5}}} | Human (Homo sapiens) = Hg19 | Mouse (Mus musculus) = Mm9 }}}}{{#vardefine:header_species2|{{#switch: {{{5}}} | Human (Homo sapiens) = Hg38 | Mouse (Mus musculus) = Mm10 }}}}{{#loop: k
{{#arraydefine:headers_sample_access_numbers|Method,Sample accession id|;}}{{#arraydefine:y-1|}}{{#arraydefine:k-1|}}{{#vardefine:e-1|}}{{#vardefine:t-1|}}{{#loop: k
   | 0           
   | 0           
   | {{#arraysize:accession_numbers_array}}
   | {{#arraysize:accession_numbers_array}}
   | <nowiki/>
   | <nowiki/>
{{#arraydefine:tmp{{#var:k}}|{{#arrayindex:accession_numbers_array |{{#var:k}}}}}}{{#arraydefine:tmp_{{#var:k}}|{{#arrayprint:tmp{{#var:k}}}}|;}}
{{#arraydefine:tmp{{#var:k}}|{{#arrayindex:accession_numbers_array |{{#var:k}}}}}}{{#arraydefine:tmp_{{#var:k}}|{{#arrayprint:tmp{{#var:k}}}}|;}}{{#loop: m
{{#loop: m
   | 0           
   | 0           
   | {{#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 = [http://trace.ddbj.nig.ac.jp/DRASearch/{{#var:link}}?acc={{#var:tmpinternal}} {{#var:tmpinternal}}]<br> | 2 = [http://trace.ddbj.nig.ac.jp/DRASearch/{{#var:link}}?acc={{#var:tmpinternal}} {{#var:tmpinternal}}]<br> | {{#var:tmpinternal}}<br>}} }}
   {{#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 21: 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 = [http://trace.ddbj.nig.ac.jp/DRASearch/{{#var:link}}?acc={{#var:tmpe}} {{#var:tmpe}}] | 2 = [http://trace.ddbj.nig.ac.jp/DRASearch/{{#var:link}}?acc={{#var:tmpe}} {{#var:tmpe}}] | {{#var:tmpe}}}}  }}  }}  
{{#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 29: Line 27:
{{#arraydefine:kekka|{{#sub:{{#var:e{{#var:k}}}}|1|{{#len:{{#var:e{{#var:k}}}} }} }}|!}}
{{#arraydefine:kekka|{{#sub:{{#var:e{{#var:k}}}}|1|{{#len:{{#var:e{{#var:k}}}} }} }}|!}}
{|class="wikitable  mw-outercollapse mw-collapsible mw-collapsed"  
{|class="wikitable  mw-outercollapse mw-collapsible mw-collapsed"  
!Accession numbers  
!{{{1}}} Accession numbers  
|-
|-
|<table cellspacing="0" border="1"><tr><th>{{#replace:{{#arrayprint:headers_sample_access_numbers}}|,|</th><th></th><th>}}</tr>{{#loop: j
|<table cellspacing="0" border="1"><tr><th>{{#replace:{{#arrayprint:headers_sample_access_numbers}}|,|</th><th></th><th>}}</tr>{{#loop: j
Line 35: 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>&nbsp;</html>|}}{{#vardefine:LIBID|{{#explode:{{#arrayindex:DRA_sample_accession_array| {{#var:j}} }}|@|1}} }}}}{{#vardefine:LIBID_URLed|{{#if:{{#var:LIBID}}|[http://trace.ddbj.nig.ac.jp/DRASearch/sample?acc={{#var:LIBID}} [[Sample accession::{{#var:LIBID}}]]]|}}}}
{{#vardefine:EXPMETHOD|{{#explode:{{#arrayindex:DRA_sample_accession_array| {{#var:j}} }}|@|0}} }}{{#vardefine:EXPMETHOD_URLed|{{#if:{{#var:EXPMETHOD}}|'''{{#var:EXPMETHOD}}'''<html>&nbsp;</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>
{|class="wikitable mw-collapsible mw-innercollapse" style="width:auto"  
{|class="wikitable mw-collapsible mw-innercollapse" style="width:auto"  
!Library accession numbers
!Library accession numbers
Line 47: Line 44:
   | {{#arraysize:kekka}}
   | {{#arraysize:kekka}}
   | <nowiki/>
   | <nowiki/>
{{#vardefine:tmp_acc_num|{{#arrayindex:kekka |{{#var:j}}}}}}{{#arraydefine:tmp_acc_num_arry|{{#var:tmp_acc_num}}|;}}{{#arrayslice:first_slice_tmp_acc_num_arry|tmp_acc_num_arry|0|1}}{{#arrayslice:second_slice_tmp_acc_num_arry|tmp_acc_num_arry|1|{{#arraysize:tmp_acc_num_arry}}}}{{#vardefine:tmp_lib_id |{{#arrayindex:library_ids_array|{{#var:j}}}}}}{{#arraydefine:tmp_lib_id_arry|{{#var:tmp_lib_id}}}}{{#arraymerge:x{{#var:j}}|tmp_lib_id_arry|first_slice_tmp_acc_num_arry |second_slice_tmp_acc_num_arry}}<tr><td>{{#replace:{{#arrayprint:x{{#var:j}}}}|,|</td><td></td><td>}}</tr>
{{#vardefine:tmp_acc_num|{{#arrayindex:kekka |{{#var:j}}}}}}{{#arraydefine:tmp_acc_num_arry|{{#var:tmp_acc_num}}|;}}{{#arrayslice:first_slice_tmp_acc_num_arry|tmp_acc_num_arry|0|1}}{{#arrayslice:second_slice_tmp_acc_num_arry|tmp_acc_num_arry|1|2}}{{#vardefine:tmp_lib_id |{{#arrayindex:library_ids_array|{{#var:j}}}}}}{{#arraydefine:tmp_lib_id_arry|{{#var:tmp_lib_id}}}}{{#arraymerge:x{{#var:j}}|tmp_lib_id_arry|first_slice_tmp_acc_num_arry |second_slice_tmp_acc_num_arry}}<tr><td>{{#replace:{{#arrayprint:x{{#var:j}}}}|,|</td><td></td><td>}}</tr>
}}
}}
</table>
</table>
<!-- bam&ctss accession ID table (Hg19 Mm9) -->
{|class="wikitable mw-collapsible mw-innercollapse" style="width:auto"
!Accession ID {{#var:header_species1}}
|-
|<table cellspacing="0" border="1"><tr><th>Library id</th><th></th><th>BAM</th><th></th><th>CTSS</th></tr>
{{#loop: p
  | 0         
  | {{#arraysize:kekka}}
  | <nowiki/>
{{#vardefine:tmp_acc_num|{{#arrayindex:kekka |{{#var:p}}}}}}{{#arraydefine:tmp_acc_num_arry|{{#var:tmp_acc_num}}|;}}{{#arrayslice:first_acc_num_arry|tmp_acc_num_arry|3|2}}{{#vardefine:tmp_lib_id |{{#arrayindex:library_ids_array|{{#var:p}}}}}}{{#arraydefine:tmp_lib_id_arry|{{#var:tmp_lib_id}}}}{{#arraymerge:x{{#var:p}}|tmp_lib_id_arry|first_acc_num_arry}}<tr><td>{{#replace:{{#arrayprint:x{{#var:p}}}}|,|</td><td></td><td>}}</tr>
}}
</table>
|}
<!-- end of bam&ctss accession ID table -->
<!-- bam&ctss accession ID table (Hg38 Mm10) -->
{{#vardefine:kekka_firstline|{{#arrayindex:kekka|0}}}}{{#arraydefine:kekka_firstarry|{{#var:kekka_firstline}}|;}}{{#vardefine:disp|{{#if:{{#arrayindex:kekka_firstarry|5}}||display:none}}}}{|class="wikitable mw-collapsible mw-innercollapse" style="width:auto;{{#var:disp}}"
!Accession ID {{#var:header_species2}}
|-
|<table cellspacing="0" border="1"><tr><th>Library id</th><th></th><th>BAM</th><th></th><th>CTSS</th></tr>
{{#loop: q
  | 0         
  | {{#arraysize:kekka}}
  | <nowiki/>
{{#vardefine:tmp_acc_num|{{#arrayindex:kekka |{{#var:q}}}}}}{{#arraydefine:tmp_acc_num_arry|{{#var:tmp_acc_num}}|;}}{{#arrayslice:second_acc_num_arry|tmp_acc_num_arry|5|2}}{{#vardefine:tmp_lib_id |{{#arrayindex:library_ids_array|{{#var:q}}}}}}{{#arraydefine:tmp_lib_id_arry|{{#var:tmp_lib_id}}}}{{#arraymerge:x{{#var:q}}|tmp_lib_id_arry|second_acc_num_arry}}<tr><td>{{#replace:{{#arrayprint:x{{#var:q}}}}|,|</td><td></td><td>}}</tr>
}}
</table>
|}
<!-- end of bam&ctss accession ID table -->
|}
|}
|}
|}
<br>

Latest revision as of 13:46, 4 April 2022

{{{1}}} Accession numbers
MethodSample accession id
{{{2}}} 
Library accession numbers

Library idMethodExp. accession idRun accession id
{{{4}}} {{{3}}}
Accession ID

Library idBAMCTSS
{{{4}}}