# G4Hunter

### Quick G4Hunter score

Just type your sequence in the box and you get the G4Hunter score below.
Spaces are automaticaly removed, lower or upper cases are accepted.
Characters orther than G or C are kept and counted as A,T or U.

### G4Hunter seeker

You have to choose how you enter your sequence either manually (Manual entry) or using a DNA fasta file (Fasta File entry). You have to choose if your sequence is in the DNA or RNA alphabet.

The Threshold and Window size determine the parameters for the sequence search as described in the publication.
The higher the threshold, the more stringent the search: fewer G4 motifs wil be found, but these will be the most stable/likely ones.

##### For Manual entry:

You can change the Target name as you wish, but please note that this name will also end up in the file name of your output file and in the first column of the output table.
Letters in the sequence have to belong to the DNA alphabet (A,C,T,G,M,R,W,S,Y,K,V,H,D,B,N) if DNA alphabet is selected or to the RNA alphabet (A,C,U,G,M,R,W,S,Y,K,V,H,D,B,N) if RNA alphabet is selected.
Gaps (- or .), numbers and hard masking (+) are not accepted.

##### For Fasta File entry:

The file to download has to be a single DNA or RNA fasta file that does not exceed the size limit imposed by Shiny (default is 5Mb, see below how to change it).
The first line of the fasta file (after the > sign) imposes the sequence name (seqname) in the output. This can be changed by checking the Alternate Seqname option and entering the chosen sequence name in the New Seqname option.

The Report sequences option adds the nucleotide sequences in the output.
The Report G_sequences option changes sequences with a negative score (C-rich sequences) into their reverse complement. Thus the output reports only G-rich sequences.

The hits report the number of sequences retrieved that match the settings.
The Length of the Input Sequence corresponds to the length of the DNA sequence you enter with your Fasta file or manually.

The output table contains the sequence name (seqnames), the start, end and width of the refined sequences that meet the search criteria.
The strand is + if the proposed G4 forming sequence is in the Input Sequence and this is set to - if the G4 forming sequence in on the reverse complementary strand.
The score is the G4Hunter score of the refined sequence and max_score is the highest score in absolute value in a window of the chosen window size for the sequence.
Threshold and window are respectively the Threshold and Window size used for the search.
The sequence corresponds to the refined sequence in the Input sequence. This field is sensitive to the Report G-sequences option. This field is not present if the Report sequences option is not selected.

##### Please see the publication and Figure S1B for more details

The output can be exported to a text file that can be directly opened with Microsoft Excel.

As this is a simple Shiny app, there is a limit to the size you can upload (5Mb).
If necessary (but might not be good for the host), the size limit can be increased to XX Mb by adding the following code at the top of the server.R file (adapted from stackoverflow).

options(shiny.maxRequestSize=XX*1024^2)

This project is independent of the G4-Hunter python repository even if both project are related to the same publication.