Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
14c2b0e
icon for mac
guanshaoheng Feb 25, 2025
d330cbf
delete opencv dependency
guanshaoheng Mar 6, 2025
5414a7e
add nlohmann dependency
guanshaoheng Mar 6, 2025
c76ad77
image resize
guanshaoheng Mar 6, 2025
e10b57d
auto cut
guanshaoheng Mar 6, 2025
2f9b4c3
auto cut python script
guanshaoheng Mar 7, 2025
9b68653
auto cut
guanshaoheng Mar 19, 2025
8eb4f63
add fmt lib
guanshaoheng Mar 24, 2025
764d246
add select sort area mode description
guanshaoheng Mar 24, 2025
c1aaa03
add fmt lib
guanshaoheng Mar 24, 2025
f134adc
auto cut run within selected area and local sort with double ends fixed
guanshaoheng Mar 24, 2025
05de40d
remove track
guanshaoheng Mar 24, 2025
94079ae
force msvc to use utf-8
guanshaoheng Mar 24, 2025
943854c
update version
guanshaoheng Mar 24, 2025
00dc83b
color blind color palette
guanshaoheng Apr 7, 2025
35d5804
update copy_texture_to_cpu and weight for link score calculate
guanshaoheng Apr 7, 2025
509749c
change parameters for pixel cut
guanshaoheng Apr 7, 2025
dc9fd4f
fix the end while sorting locally
guanshaoheng Apr 7, 2025
cf3128f
add pixel density extension for pixel cut
guanshaoheng Apr 7, 2025
d1e6cf5
seperate this part from frag sort file
guanshaoheng Apr 7, 2025
69388ac
re-organise files
guanshaoheng Apr 7, 2025
b798e1c
grey out frags with selected meta-tags
guanshaoheng Apr 7, 2025
09a6366
add comments
guanshaoheng Apr 7, 2025
c369c55
small changes
guanshaoheng Apr 7, 2025
d871090
yahs sort mode (unfinished)
guanshaoheng Apr 7, 2025
ea7e968
small changes
guanshaoheng Apr 7, 2025
c81b6b0
changes
guanshaoheng Apr 7, 2025
aa2a41b
include <memory>
guanshaoheng Apr 7, 2025
f742a20
update readme
guanshaoheng Apr 7, 2025
c677f11
restore the original download times record link
guanshaoheng Apr 7, 2025
649e103
fix the bug of vary length array
guanshaoheng Apr 7, 2025
3200506
fix bug of varying length array
guanshaoheng Apr 7, 2025
21b1abc
fix bug of vary length array
guanshaoheng Apr 7, 2025
473b393
Merge branch 'master' into test_before_release
guanshaoheng Apr 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
41 changes: 39 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,38 @@ app/
ascii.dSYM/
build_cmake/
builddir/
.DS_Store
*.DS_Store
__pycache__/
*.pyc
.idea/ # JetBrains IDE
.vscode/ # Visual Studio Code
*.suo # VS Code user settings
*.swp # Vim swap files
*.log
*.tmp
*.bak # backup files
venv/ #
env/ #
*.egg-info/ # Python egg files
*.eggs/

python/
python/comparison_fig/
python/test_data_from_openglbuffer/
python/graphData_constructor.py
python/open_plot_saved_compressed_extension.py
python/open_plot_saved_compressed_hic.py
python/open_plot_saved_textures.py
python/test_cal_mass_center.py
python/test_compresed_data.py
python/test.py
python/compressed_data_test/
python/autoCut/models/cfgs/error_model.pth
python/autoCut/models/cfgs/chr_model.pth
python/autoCut/models/swin/mmdet.egg-info/*
python/classic_cut/show_hic_density.py
python/colormap_colorblind/*
python/greedy_topo_sort_test/*
python/linear_weight_test/*

subprojects/eigen
subprojects/glfw
Expand Down Expand Up @@ -36,6 +65,7 @@ logs/
.gitignore

ico_design/icon_design.ai
ico_design/icon_v1.iconset/
include/GLFW/glfw3.h
include/GLFW/glfw3native.h
include/libdeflate.h
Expand All @@ -45,3 +75,10 @@ PretextViewAI.zip

test_data/
subprojects/libtorch(not needed in this version)/

hic_figures/
auto_cut_output/
python/autoCut/models/swin/README.md
python/autoCut/models/swin/mmcv_custom/

yahs_archive/
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
[submodule "subprojects/pytorch_scatter"]
path = subprojects/pytorch_scatter
url = https://github.com/guanshaoheng/pytorch_scatter.git

[submodule "subprojects/fmt"]
path = subprojects/fmt
url = https://github.com/fmtlib/fmt.git
42 changes: 37 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
cmake_minimum_required(VERSION 3.17)
project(PretextView VERSION "1.0.1")
project(PretextView VERSION "1.0.3")


option(FORCE_MAC_X86 "Force macOS x86_64 build" OFF)
option(FORCE_MAC_X86 "Force macOS x86_64 build" OFF)
option(BUILD_UNIVERSAL "Build macOS universal binary" OFF)
option(WITH_TORCH "Find and link torch lib" OFF)
option(DEBUG_OUTPUT_LIKELIHOOD_TABLE "Output likelihood table to file" OFF)
option(DEBUG_OUTPUT_PIXEL_CUT_FILE "Output the pixel cut files" OFF)

set(CMAKE_C_STANDARD 17)
set(CMAKE_CXX_STANDARD 17)
Expand All @@ -14,7 +16,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(target_name PretextViewAI)

if (APPLE)

if(FORCE_MAC_X86)
message(STATUS "Forcing x86_64 architecture build")
set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures" FORCE)
Expand Down Expand Up @@ -55,6 +56,9 @@ else()
endif()
endif()

if (MSVC)
add_compile_options(/utf-8) # force MSVC to use UTF-8
endif()

message(STATUS "Install path: ${CMAKE_INSTALL_PREFIX}")

Expand All @@ -76,11 +80,26 @@ include_directories(
subprojects/glfw/include
subprojects/libdeflate
subprojects/glm
subprojects/fmt/include
)

add_subdirectory(subprojects/glfw)
add_subdirectory(subprojects/glm)

find_library(
lib_fmt
NAMES fmt libfmt
PATHS
subprojects/fmt/build
subprojects/fmt/build/debug
subprojects/fmt/build/Release
subprojects/fmt/build/release)
if(NOT lib_fmt)
message(FATAL_ERROR "lib_fmt not found")
else()
message(STATUS "lib_fmt found: ${lib_fmt}")
endif()


find_library(
lib_deflate_static
Expand All @@ -96,6 +115,9 @@ else()
message(STATUS "lib_deflate_static found: ${lib_deflate_static}")
endif()

add_library(lib_yahs STATIC
src/yahs_sort.cpp
)

# set(CMAKE_PREFIX_PATH "subprojects/libtorch/share/cmake/Torch")
if (WITH_TORCH)
Expand All @@ -111,14 +133,16 @@ if (WITH_TORCH)
target_link_libraries(
sortlib PUBLIC
${TORCH_LIBRARIES}
${torchscatter})
${torchscatter}
lib_yahs)
else()
message(STATUS "Libtorch: Build without libtorch")
add_library(sortlib STATIC src/frag_sort.cpp )
target_link_libraries(sortlib PRIVATE lib_yahs)
endif()


add_library(glad STATIC glad.c)
add_library(glad STATIC src/glad.c)
add_library(utilsPretextView STATIC src/utilsPretextView.cpp)
add_library(copy_texture STATIC src/copy_texture.cpp)
# target_link_libraries(copy_texture PRIVATE Eigen3::Eigen)
Expand All @@ -141,6 +165,7 @@ else()
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_SOURCE_DIR}/Info.plist"
)
endif()

target_compile_definitions(${target_name} PRIVATE PV=${PROJECT_VERSION})
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(${target_name} PRIVATE DEBUG)
Expand All @@ -149,16 +174,23 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
else()
message(STATUS "Release version: flag (${CMAKE_BUILD_TYPE}) without DEBUG")
endif()
if (DEBUG_OUTPUT_LIKELIHOOD_TABLE)
message(STATUS "Debug version: flag (${CMAKE_BUILD_TYPE}) with DEBUG_OUTPUT_LIKELIHOOD_TABLE")
target_compile_definitions(${target_name} PRIVATE DEBUG_OUTPUT_LIKELIHOOD_TABLE)
endif()

target_link_libraries(
${target_name} PRIVATE
${lib_deflate_static}
${lib_fmt}
sortlib
glm
glad
utilsPretextView
copy_texture
imgui
glfw
lib_yahs
)

if (APPLE)
Expand Down
2 changes: 1 addition & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleIconFile</key>
<string>icon.icns</string>
<key>CFBundleShortVersionString</key>
<string>1.0.1</string>
<string>1.0.3</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand Down
Loading