Document Document

Software

Overview



On this part, we developed software tools to transform music and images that need modification into corresponding modifiable base sequences based on our designed coding system (see Model or gitlab for details). We applied these software tools to generate the DNA sequences used in our project, and verified the rationality of these sequences through experiments. In addition, during the process of project iteration, we have ever tried to design gRNA sequences with the function of encoding Chinese characters. Therefore, we also built a Chinese character - base coding library and a matching query tool.

The software development process is detailed in the Notebook.


Name Description
musicGUI Music-Bases transform
imageGUI Image-Bases transform
Chinese character-base Chinese character-Bases transform

Image-storage program




The body of the program is a dot matrix of pixels, and when initialized, all pixels are white.

(1) The size of the pixel matrix can be changed via the size selection menu option. The reset option in the menu bar initializes the program and the staging images are emptied. The Clear option turns all pixels white and does not empty the staging picture.

(2) Here you can select the state of the current mouse: 'pen' or 'eraser'.


(3) When the pen state is selected (gray), the user can click the pixel or hold down the CTRL key while moving the mouse over the pixel to turn the white pixel into black. When the eraser state is selected, black pixels can be turned white.


(4) After you have a pixelgram, click the 'Generate the sequence' button to get a modifiable sequence of bases converted from the image in the text box on the right. You can select it and copy it to import the snapgene software.At the same time, you can click 'Save the pixelmap' to temporarily save the generated pixel map in the program.


(5) After creating and saving a few pixel maps, you can click the 'Generate a gif diagram' button and a new dialog box will pop up. Enter the name of the newly generated gif image and the time between each frame of the gif image, click the 'submit' button, and you can get a newly generated gif image in the folder where the program is located.




Music-program



The main body of the program includes three parts.

Part I


This part is a generator of base music, which is an original tone we input. Click the button marked with music notes at the bottom to input the notes in order.
Among them, C3 corresponds to the central c of the piano, and others are similar.



For example, I input a 135C key chord.
Click 'C3', 'E3' and 'G3'.

Pitch is the display of the music symbol just pressed.



Click the first 'show' to display the note just entered. Click 'Clear' to clear all the entered notes, and click 'Delete' to clear only the last one.

You can click the music symbol below to input again at any time, and the input will be added at the end of the previous input. The input errors can be erased in this way.
Then there is the choice of volume length.

Here are some commonly used lengths:
'1/2' corresponds to a half note‘ 1/4 'corresponds to a quarter note‘ 1/8 'corresponds to an eighth note;
'1/16' corresponds to the sixteenth note‘ 1 'corresponds to a whole note;
'1/2 sub point' corresponds to a half note plus a sub point‘ 1/4 sub point;
'corresponds to a quarter note plus a sub point‘ 1/8 subpoint 'corresponds to an octave plus a minor dot;



The operation method is similar to that for tones.



'Length' displays the last entered music symbol length, delete is to delete the last entered month symbol length, 'Clear' is to clear all inputs, and 'show' is to display all inputs.
Here, the number of note pitches and the number of volume lengths are required to be equal, otherwise an error will be reported in subsequent operations.

Then click 'Finish'. You can get the corresponding base segment. Click 'play' to play the input clip.




Part Ⅱ


After completing the first part, click 'Change Your Base' to open the second part.



Part II Display



Below the 'Original Tone' is the pitch part originally input.



Click the button below 'Select the Change of Original You Want' to get a new pitch. For example, if I want to change ['C3, 'D3', 'E3'] to ['D3 ',' D3 ',' D3 '], then I can click' D 'three times or click' D 'again and then click 'Pass' again and then click 'D' again.
If the tone is not changed, click "Pass".



Click 'Delete' to delete the last bit, and click 'clear' to clear all.
If you don't want to change this part, click 'Don't Change'.



Then the octave of the tone is changed.
Click '- 1' to reduce by one octave. 0 means no change. If no change is made, click '0' to occupy the space.
You can also click 'Don't Change' to mark that all are not modified.



Part Ⅲ


The third part is to control the rise and fall of the modified music, click 'Rise' and 'Down' to open it. If it is not opened, the default is no lifting. Click to open a new window.



The upper window is the pitch to be changed. Click 'Rise', 'Down', 'Redution' to operate the music note.
If no operation is performed, click the 'Reduction' placeholder.

Similarly, 'Delete' means to clear the last input, and 'clear' means to clear the input.
Click OK after completion, and then return to the second part.
Click 'Finish'.



We could obtained DNA sequences in the first section.



Click 'play' on the second interface to play the modified music.


The Chinese character base conversion program


Program Interface Introduction:
You can use this program to get the number of bases for common Chinese characters.


STEP 1:
If you want to build your own Chinese character-base library, open trans.exe and input yes.
If you don't, you can ignore this step.

STEP 2:
Input a Chinese character.

STEP 3:
Hit Enter.