Skip to content

Commit 07a4d5c

Browse files
committed
Update build system to pyproject.toml and hatchling
1 parent e6abdf8 commit 07a4d5c

9 files changed

Lines changed: 48 additions & 345 deletions

File tree

bin/overlap_ss.sh

Lines changed: 0 additions & 180 deletions
This file was deleted.

docs/other-tasks.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,6 @@ Flags:
200200
-V, --version Print version number then exit.
201201
```
202202

203-
## Same Strand Overlap
204-
205-
If you wish to detect same strand overlaps, you can use the `overlap_ss` script that is installed in the same environment as this pipeline. This uses a number of bash programs to create files that show where two sets of small RNA that appear on the same strand overlap.
206-
207-
To use this script you need two sets of small RNA as FASTA or FASTQ files, one for the base and one for the overlap, plus the genome of the species of interest. You can then run the script in the following way:
208-
209-
```
210-
$ overlap_ss genome.fasta smallRNA1.fastq smallRNA2.fastq
211-
```
212-
213-
This script will then create output in the output directory specified in `config.toml` under the directory `samestrand_overlap/`.
214-
215203
## miRNA
216204

217205
TODO

hlsmallrna/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
from .__main__ import main
15-
from .ss_overlap import main_ssoverlap
1615
from .label_for_unitas import label_for_unitas_cli
1716

1817
def climain():
1918
main()
2019

21-
def ssoverlap_main():
22-
main_ssoverlap()
23-
2420
def labelforunitas_main():
2521
label_for_unitas_cli()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def process_fa_out(path_to_fa_out, output, feature, scaffold_index=None):
280280
writer.writerow(['Chrom', 'Name', 'Start', 'End'])
281281
writer.writerows(antisense_targets)
282282

283-
if __name__ == '__main__':
283+
def main():
284284
parser = ArgumentParser(description='Convert common bioinformatics file formats into coordinate file to plot')
285285

286286
parser.add_argument('-a', '--fasta', action='store_true', help='Treat input as a FASTA file')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def extract_noncoding(genome, gff_path, output='result.fasta'):
166166

167167
SeqIO.write(extract_fragments(genome_data, coordinates, mRNA_start, mRNA_end), output, 'fasta')
168168

169-
if __name__ == '__main__':
169+
def main():
170170
parser = ArgumentParser('')
171171

172172
parser.add_argument('genome', help='FASTA containing the genome to extract from')
Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,25 @@
1717

1818
from Bio import SeqIO
1919

20-
parser = ArgumentParser(description='Simple script to reverse complement a FASTA file')
21-
22-
parser.add_argument('-i', '--input', help='FASTA file to reverse complement')
23-
parser.add_argument('-o', '--output', help='FASTA file to write to')
24-
25-
args = parser.parse_args()
26-
27-
if args.input is None or args.output is None:
28-
raise Exception('Both -i and -o need to be set to run this')
29-
3020
def reverse_complement(seq):
3121
revcomp = seq.reverse_complement()
3222
revcomp.id = seq.id
3323
revcomp.description = seq.description
3424

3525
return revcomp
3626

37-
seqs = SeqIO.parse(args.input, 'fasta')
38-
seqs = map(reverse_complement, seqs)
27+
def main():
28+
parser = ArgumentParser(description='Simple script to reverse complement a FASTA file')
29+
30+
parser.add_argument('-i', '--input', help='FASTA file to reverse complement')
31+
parser.add_argument('-o', '--output', help='FASTA file to write to')
32+
33+
args = parser.parse_args()
34+
35+
if args.input is None or args.output is None:
36+
raise Exception('Both -i and -o need to be set to run this')
37+
38+
seqs = SeqIO.parse(args.input, 'fasta')
39+
seqs = map(reverse_complement, seqs)
3940

40-
SeqIO.write(seqs, args.output, 'fasta')
41+
SeqIO.write(seqs, args.output, 'fasta')

hlsmallrna/ss_overlap.py

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)