File: index.php

package info (click to toggle)
assemblytics 1.0+ds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 416 kB
  • sloc: python: 564; perl: 234; php: 124; sh: 94; makefile: 11
file content (142 lines) | stat: -rwxr-xr-x 7,855 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>

<html>

<!--    NAVIGATION BAR-->
<?php include "header.html";?>
<?php include "title.html";?>

<!--INSTRUCTIONS-->

<!-- <div class="center"> -->
  <div class="row">
          <div class="col-lg-7"> 
                  <!-- <div class="alert alert-warning">
                    Assemblytics is currently under maintenance and may have some features missing temporarily. 
                  </div> -->
                  <div class="panel panel-default">
                      <div class="panel-heading"> <h3 class="panel-title">Instructions</h3></div>
                      <div class="panel-body"><p>Upload a delta file to analyze alignments of an assembly to another assembly or a reference genome</p>
                        <ol>
                          <li>Download and install <a href="http://sourceforge.net/projects/mummer/files/" target="_blank">MUMmer</a>
                            </li>
                          <li>Align your assembly to a reference genome using nucmer (from MUMmer package)
                              <p><pre>$ nucmer -maxmatch -l 100 -c 500 REFERENCE.fa ASSEMBLY.fa -prefix OUT</pre></p>
                              <p>
                                Consult the <a href="http://mummer.sourceforge.net/manual/" target="_blank">MUMmer manual</a> if you encounter problems</li>
                              </p></li>
                          <!-- <li>Optional: Delta-filter to reduce file size before upload (from MUMmer package). In this example, only alignments of at least 10kb are included, which makes the file size smaller before upload. The limit on file size for upload here is 2 GB.
                              <p><pre>$ delta-filter -l 10000 OUT.delta > OUT.l10000.delta </pre></p>
                              </li> -->
                          <li>Optional: Gzip the delta file to speed up upload (usually 2-4X faster)
                            <p><pre>$ gzip OUT.delta</pre>
                              Then use the OUT.delta.gz file for upload.
                            </p></li>
                          <li>Upload the .delta or delta.gz file (<a href="tests/sample.delta" target="_blank">view example</a>) to Assemblytics</li>
                        </ol>
                        <p>
                        Important: Use only contigs rather than scaffolds from the assembly. This will prevent false positives when the number of Ns in the scaffolded sequence does not match perfectly to the distance in the reference. 
                        </p>
                        <p>
                        The unique sequence length required represents an anchor for determining if a sequence is unique enough to safely call variants from, which is an alternative to the mapping quality filter for read alignment. 
                        </p>
                      </div>
                  </div>
          </div>
          <div class="col-lg-5"> 
                  <div class="panel panel-default">
                          <div class="panel-heading"> <h3 class="panel-title">Run Assemblytics</h3></div>
                          <div class="panel-body">
                                  	<!--    DROPZONE   -->
                                  	<div class="center frame"> 
                                      	<form action="file_upload.php"
                                      	    class="dropzone"
                                      	    id="myAwesomeDropzone">
                                            <!-- <div class="dz-message" data-dz-message><span>Drop delta file here</span></div> -->
                                      	    <input type="hidden" name="code_hidden" value="">
                                      	</form>
                                        <!--   end of DROPZONE   -->
                                  	</div>
                                  <div class="center frame"> 
                                  <!--    SUBMIT BUTTON with hidden field to transport code to next page   -->
                                  <form name="input_code_form" action="input_validation.php"  method="post">
                                        <p>
                                          <div class="input-group input-group-lg">
                                            <span class="input-group-addon">Description</span>
                                             <input type="text" name="nickname" class="form-control" value = "my favorite organism">
                                          </div>
                                        </p>
                                        <p>
                                          <div class="input-group input-group-lg">
                                            <span class="input-group-addon">Unique sequence length required</span>
                                             <input type="number" max="100000" step="1000" min="1000" name="uniqlength" class="form-control" value = "10000">
                                          </div>
                                        </p>
                                        <p>
                                          <div class="input-group input-group-lg">
                                            <span class="input-group-addon">Maximum variant size</span>
                                             <input type="number" max="100000" step="1000" min="1000" name="max_size" class="form-control" value = "10000">
                                          </div>
                                        </p>
                                        <p>
                                          <div class="input-group input-group-lg">
                                            <span class="input-group-addon">Minimum variant size</span>
                                             <input type="number" max="50" step="1" min="1" name="min_size" class="form-control" value = "50">
                                          </div>
                                        </p>

                                        <!-- <p>
                                          <div class="input-group input-group-lg">
                                            <span class="input-group-addon">Read length</span>
                                             <input type="number" step="1" name="read_length" class="form-control" value = "100">
                                          </div>
                                        </p> -->
                                        <p id="analysis_form">
                                      <!--  submit button set from within front_page_script.js --> 
                                        </p>
                                  </form>
                                  </div>
                          </div>
                  </div>
          </div>
  </div>
<!-- </div> -->



<!--View analysis later-->
<!-- <div id="codepanel" class="center">
    <div class="panel panel-info">
      <div class="panel-heading"><h3 class="panel-title">View analysis later</h3></div>
      <div id="code" class="panel-body">
         contents set from within front_page_script.js 
      </div>

    </div>
</div>  -->

<!--scripts at the end of the file so they don't slow down the html loading-->
<script src="js/front_page_script.js"></script>
<script src="js/dropzone.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<script type="text/javascript">
Dropzone.options.myAwesomeDropzone = {
  accept: function(file, done) {
    console.log("uploaded");
    done();
  },
  maxFilesize: 2000, // in MiB
  init: function() {
    this.on("addedfile", function() {
      if (this.files[1]!=null){
        this.removeFile(this.files[0]);
      }
    });
  }
};  

</script>
</body>
</html>