annotate lame.py @ 41:d129c3d0e920 draft default tip

planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
author richard-burhans
date Mon, 28 Jul 2025 14:35:28 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
41
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
1 #!/usr/bin/env python3
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
2
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
3 for i in range(0, 16):
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
4 hex_value = f"{i:0x}"
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
5 bin_value = f"{i:04b}"
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
6 ones = len(bin_value.replace("0", ""))
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
7
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
8 print(f'{ones}')
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
9
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
10
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
11
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
12 # 0 0000 0
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
13 # 1 0001 1
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
14 # 2 0010 1
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
15 # 3 0011 2
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
16 # 4 0100 1
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
17 # 5 0101 2
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
18 # 6 0110 2
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
19 # 7 0111 3
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
20 # 8 1000 1
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
21 # 9 1001 2
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
22 # a 1010 2
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
23 # b 1011 3
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
24 # c 1100 2
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
25 # d 1101 3
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
26 # e 1110 3
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
27 # f 1111 4
d129c3d0e920 planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 8278322cb9db499c593669d2bb8b740024ecf5dc
richard-burhans
parents:
diff changeset
28